; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/graph (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.AdjList_ = type { ptr, %struct.List_ }
%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 [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = 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 ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [2 x i8], align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = 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 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @graph_init(ptr noundef %6, ptr noundef @match_str, ptr noundef @free)
  %16 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %16, ptr %9, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

19:                                               ; preds = %2
  %20 = load ptr, ptr %9, align 8, !tbaa !9
  %21 = call ptr @strcpy(ptr noundef %20, ptr noundef @.str) #5
  %22 = load ptr, ptr @stdout, align 8, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.1, ptr noundef %23) #5
  %25 = load ptr, ptr %9, align 8, !tbaa !9
  %26 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %25)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %19
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

29:                                               ; preds = %19
  %30 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %30, ptr %9, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

33:                                               ; preds = %29
  %34 = load ptr, ptr %9, align 8, !tbaa !9
  %35 = call ptr @strcpy(ptr noundef %34, ptr noundef @.str.2) #5
  %36 = load ptr, ptr @stdout, align 8, !tbaa !9
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.1, ptr noundef %37) #5
  %39 = load ptr, ptr %9, align 8, !tbaa !9
  %40 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %39)
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %33
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

43:                                               ; preds = %33
  %44 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %44, ptr %9, align 8, !tbaa !9
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

47:                                               ; preds = %43
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = call ptr @strcpy(ptr noundef %48, ptr noundef @.str.3) #5
  %50 = load ptr, ptr @stdout, align 8, !tbaa !9
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.1, ptr noundef %51) #5
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %53)
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %47
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

57:                                               ; preds = %47
  %58 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %58, ptr %9, align 8, !tbaa !9
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

61:                                               ; preds = %57
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = call ptr @strcpy(ptr noundef %62, ptr noundef @.str.4) #5
  %64 = load ptr, ptr @stdout, align 8, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.1, ptr noundef %65) #5
  %67 = load ptr, ptr %9, align 8, !tbaa !9
  %68 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %67)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %61
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

71:                                               ; preds = %61
  %72 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %72, ptr %9, align 8, !tbaa !9
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

75:                                               ; preds = %71
  %76 = load ptr, ptr %9, align 8, !tbaa !9
  %77 = call ptr @strcpy(ptr noundef %76, ptr noundef @.str.5) #5
  %78 = load ptr, ptr @stdout, align 8, !tbaa !9
  %79 = load ptr, ptr %9, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.1, ptr noundef %79) #5
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %81)
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %75
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

85:                                               ; preds = %75
  call void @print_graph(ptr noundef %6)
  %86 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %86, ptr %11, align 8, !tbaa !9
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

89:                                               ; preds = %85
  %90 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %91 = call ptr @strcpy(ptr noundef %90, ptr noundef @.str) #5
  %92 = load ptr, ptr %11, align 8, !tbaa !9
  %93 = call ptr @strcpy(ptr noundef %92, ptr noundef @.str.2) #5
  %94 = load ptr, ptr @stdout, align 8, !tbaa !9
  %95 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %96 = load ptr, ptr %11, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.6, ptr noundef %95, ptr noundef %96) #5
  %98 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %99 = load ptr, ptr %11, align 8, !tbaa !9
  %100 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %98, ptr noundef %99)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %89
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

103:                                              ; preds = %89
  call void @print_graph(ptr noundef %6)
  %104 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %104, ptr %11, align 8, !tbaa !9
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

107:                                              ; preds = %103
  %108 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %109 = call ptr @strcpy(ptr noundef %108, ptr noundef @.str) #5
  %110 = load ptr, ptr %11, align 8, !tbaa !9
  %111 = call ptr @strcpy(ptr noundef %110, ptr noundef @.str.3) #5
  %112 = load ptr, ptr @stdout, align 8, !tbaa !9
  %113 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %114 = load ptr, ptr %11, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.6, ptr noundef %113, ptr noundef %114) #5
  %116 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  %118 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %116, ptr noundef %117)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %107
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

121:                                              ; preds = %107
  call void @print_graph(ptr noundef %6)
  %122 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %122, ptr %11, align 8, !tbaa !9
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %121
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

125:                                              ; preds = %121
  %126 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %127 = call ptr @strcpy(ptr noundef %126, ptr noundef @.str.2) #5
  %128 = load ptr, ptr %11, align 8, !tbaa !9
  %129 = call ptr @strcpy(ptr noundef %128, ptr noundef @.str.3) #5
  %130 = load ptr, ptr @stdout, align 8, !tbaa !9
  %131 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %132 = load ptr, ptr %11, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.6, ptr noundef %131, ptr noundef %132) #5
  %134 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %135 = load ptr, ptr %11, align 8, !tbaa !9
  %136 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %134, ptr noundef %135)
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %125
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

139:                                              ; preds = %125
  call void @print_graph(ptr noundef %6)
  %140 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %140, ptr %11, align 8, !tbaa !9
  %141 = icmp eq ptr %140, null
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

143:                                              ; preds = %139
  %144 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %145 = call ptr @strcpy(ptr noundef %144, ptr noundef @.str.2) #5
  %146 = load ptr, ptr %11, align 8, !tbaa !9
  %147 = call ptr @strcpy(ptr noundef %146, ptr noundef @.str.4) #5
  %148 = load ptr, ptr @stdout, align 8, !tbaa !9
  %149 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %150 = load ptr, ptr %11, align 8, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150) #5
  %152 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %153 = load ptr, ptr %11, align 8, !tbaa !9
  %154 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %152, ptr noundef %153)
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %143
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

157:                                              ; preds = %143
  call void @print_graph(ptr noundef %6)
  %158 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %158, ptr %11, align 8, !tbaa !9
  %159 = icmp eq ptr %158, null
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

161:                                              ; preds = %157
  %162 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %163 = call ptr @strcpy(ptr noundef %162, ptr noundef @.str.3) #5
  %164 = load ptr, ptr %11, align 8, !tbaa !9
  %165 = call ptr @strcpy(ptr noundef %164, ptr noundef @.str.2) #5
  %166 = load ptr, ptr @stdout, align 8, !tbaa !9
  %167 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %168 = load ptr, ptr %11, align 8, !tbaa !9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.6, ptr noundef %167, ptr noundef %168) #5
  %170 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %171 = load ptr, ptr %11, align 8, !tbaa !9
  %172 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %170, ptr noundef %171)
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %161
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

175:                                              ; preds = %161
  call void @print_graph(ptr noundef %6)
  %176 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %176, ptr %11, align 8, !tbaa !9
  %177 = icmp eq ptr %176, null
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

179:                                              ; preds = %175
  %180 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %181 = call ptr @strcpy(ptr noundef %180, ptr noundef @.str.3) #5
  %182 = load ptr, ptr %11, align 8, !tbaa !9
  %183 = call ptr @strcpy(ptr noundef %182, ptr noundef @.str.3) #5
  %184 = load ptr, ptr @stdout, align 8, !tbaa !9
  %185 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %186 = load ptr, ptr %11, align 8, !tbaa !9
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.6, ptr noundef %185, ptr noundef %186) #5
  %188 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %189 = load ptr, ptr %11, align 8, !tbaa !9
  %190 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %188, ptr noundef %189)
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %193

192:                                              ; preds = %179
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

193:                                              ; preds = %179
  call void @print_graph(ptr noundef %6)
  %194 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %194, ptr %11, align 8, !tbaa !9
  %195 = icmp eq ptr %194, null
  br i1 %195, label %196, label %197

196:                                              ; preds = %193
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

197:                                              ; preds = %193
  %198 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %199 = call ptr @strcpy(ptr noundef %198, ptr noundef @.str.3) #5
  %200 = load ptr, ptr %11, align 8, !tbaa !9
  %201 = call ptr @strcpy(ptr noundef %200, ptr noundef @.str.4) #5
  %202 = load ptr, ptr @stdout, align 8, !tbaa !9
  %203 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %204 = load ptr, ptr %11, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef @.str.6, ptr noundef %203, ptr noundef %204) #5
  %206 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %207 = load ptr, ptr %11, align 8, !tbaa !9
  %208 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %206, ptr noundef %207)
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %211

210:                                              ; preds = %197
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

211:                                              ; preds = %197
  call void @print_graph(ptr noundef %6)
  %212 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %212, ptr %11, align 8, !tbaa !9
  %213 = icmp eq ptr %212, null
  br i1 %213, label %214, label %215

214:                                              ; preds = %211
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

215:                                              ; preds = %211
  %216 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %217 = call ptr @strcpy(ptr noundef %216, ptr noundef @.str.4) #5
  %218 = load ptr, ptr %11, align 8, !tbaa !9
  %219 = call ptr @strcpy(ptr noundef %218, ptr noundef @.str) #5
  %220 = load ptr, ptr @stdout, align 8, !tbaa !9
  %221 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %222 = load ptr, ptr %11, align 8, !tbaa !9
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.6, ptr noundef %221, ptr noundef %222) #5
  %224 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %225 = load ptr, ptr %11, align 8, !tbaa !9
  %226 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %224, ptr noundef %225)
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %215
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

229:                                              ; preds = %215
  call void @print_graph(ptr noundef %6)
  %230 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %230, ptr %11, align 8, !tbaa !9
  %231 = icmp eq ptr %230, null
  br i1 %231, label %232, label %233

232:                                              ; preds = %229
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

233:                                              ; preds = %229
  %234 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %235 = call ptr @strcpy(ptr noundef %234, ptr noundef @.str.5) #5
  %236 = load ptr, ptr %11, align 8, !tbaa !9
  %237 = call ptr @strcpy(ptr noundef %236, ptr noundef @.str.3) #5
  %238 = load ptr, ptr @stdout, align 8, !tbaa !9
  %239 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %240 = load ptr, ptr %11, align 8, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.6, ptr noundef %239, ptr noundef %240) #5
  %242 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %243 = load ptr, ptr %11, align 8, !tbaa !9
  %244 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %242, ptr noundef %243)
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %247

246:                                              ; preds = %233
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

247:                                              ; preds = %233
  call void @print_graph(ptr noundef %6)
  %248 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %248, ptr %11, 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 %15, align 4
  br label %557

251:                                              ; preds = %247
  %252 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %253 = call ptr @strcpy(ptr noundef %252, ptr noundef @.str.5) #5
  %254 = load ptr, ptr %11, align 8, !tbaa !9
  %255 = call ptr @strcpy(ptr noundef %254, ptr noundef @.str.4) #5
  %256 = load ptr, ptr @stdout, align 8, !tbaa !9
  %257 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %258 = load ptr, ptr %11, align 8, !tbaa !9
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.6, ptr noundef %257, ptr noundef %258) #5
  %260 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %261 = load ptr, ptr %11, align 8, !tbaa !9
  %262 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %260, ptr noundef %261)
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %251
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

265:                                              ; preds = %251
  call void @print_graph(ptr noundef %6)
  %266 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %266, ptr %11, align 8, !tbaa !9
  %267 = icmp eq ptr %266, null
  br i1 %267, label %268, label %269

268:                                              ; preds = %265
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

269:                                              ; preds = %265
  %270 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %271 = call ptr @strcpy(ptr noundef %270, ptr noundef @.str) #5
  %272 = load ptr, ptr %11, align 8, !tbaa !9
  %273 = call ptr @strcpy(ptr noundef %272, ptr noundef @.str.3) #5
  %274 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %274, ptr %9, align 8, !tbaa !9
  %275 = load ptr, ptr @stdout, align 8, !tbaa !9
  %276 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %277 = load ptr, ptr %11, align 8, !tbaa !9
  %278 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef @.str.7, ptr noundef %276, ptr noundef %277) #5
  %279 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %280 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %279, ptr noundef %9)
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %269
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

283:                                              ; preds = %269
  %284 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %284) #5
  call void @print_graph(ptr noundef %6)
  %285 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %286 = call ptr @strcpy(ptr noundef %285, ptr noundef @.str.3) #5
  %287 = load ptr, ptr %11, align 8, !tbaa !9
  %288 = call ptr @strcpy(ptr noundef %287, ptr noundef @.str.3) #5
  %289 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %289, ptr %9, align 8, !tbaa !9
  %290 = load ptr, ptr @stdout, align 8, !tbaa !9
  %291 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %292 = load ptr, ptr %11, align 8, !tbaa !9
  %293 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.7, ptr noundef %291, ptr noundef %292) #5
  %294 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %295 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %294, ptr noundef %9)
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %298

297:                                              ; preds = %283
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

298:                                              ; preds = %283
  %299 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %299) #5
  call void @print_graph(ptr noundef %6)
  %300 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %301 = call ptr @strcpy(ptr noundef %300, ptr noundef @.str.5) #5
  %302 = load ptr, ptr %11, align 8, !tbaa !9
  %303 = call ptr @strcpy(ptr noundef %302, ptr noundef @.str.3) #5
  %304 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %304, ptr %9, align 8, !tbaa !9
  %305 = load ptr, ptr @stdout, align 8, !tbaa !9
  %306 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %307 = load ptr, ptr %11, align 8, !tbaa !9
  %308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.7, ptr noundef %306, ptr noundef %307) #5
  %309 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %310 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %309, ptr noundef %9)
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %313

312:                                              ; preds = %298
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

313:                                              ; preds = %298
  %314 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %314) #5
  call void @print_graph(ptr noundef %6)
  %315 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %316 = call ptr @strcpy(ptr noundef %315, ptr noundef @.str) #5
  %317 = load ptr, ptr %11, align 8, !tbaa !9
  %318 = call ptr @strcpy(ptr noundef %317, ptr noundef @.str.2) #5
  %319 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %319, ptr %9, align 8, !tbaa !9
  %320 = load ptr, ptr @stdout, align 8, !tbaa !9
  %321 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %322 = load ptr, ptr %11, align 8, !tbaa !9
  %323 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.7, ptr noundef %321, ptr noundef %322) #5
  %324 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %325 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %324, ptr noundef %9)
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %313
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

328:                                              ; preds = %313
  %329 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %329) #5
  call void @print_graph(ptr noundef %6)
  %330 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %331 = call ptr @strcpy(ptr noundef %330, ptr noundef @.str.4) #5
  %332 = load ptr, ptr %11, align 8, !tbaa !9
  %333 = call ptr @strcpy(ptr noundef %332, ptr noundef @.str) #5
  %334 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %334, ptr %9, align 8, !tbaa !9
  %335 = load ptr, ptr @stdout, align 8, !tbaa !9
  %336 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %337 = load ptr, ptr %11, align 8, !tbaa !9
  %338 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %335, ptr noundef @.str.7, ptr noundef %336, ptr noundef %337) #5
  %339 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %340 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %339, ptr noundef %9)
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %343

342:                                              ; preds = %328
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

343:                                              ; preds = %328
  %344 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %344) #5
  call void @print_graph(ptr noundef %6)
  %345 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %345) #5
  %346 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %347 = call ptr @strcpy(ptr noundef %346, ptr noundef @.str) #5
  %348 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  store ptr %348, ptr %9, align 8, !tbaa !9
  %349 = load ptr, ptr @stdout, align 8, !tbaa !9
  %350 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %351 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %349, ptr noundef @.str.8, ptr noundef %350) #5
  %352 = call i32 @graph_rem_vertex(ptr noundef %6, ptr noundef %9)
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %355

354:                                              ; preds = %343
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

355:                                              ; preds = %343
  %356 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %356) #5
  call void @print_graph(ptr noundef %6)
  %357 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %357, ptr %11, align 8, !tbaa !9
  %358 = icmp eq ptr %357, null
  br i1 %358, label %359, label %360

359:                                              ; preds = %355
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

360:                                              ; preds = %355
  %361 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %362 = call ptr @strcpy(ptr noundef %361, ptr noundef @.str.9) #5
  %363 = load ptr, ptr %11, align 8, !tbaa !9
  %364 = call ptr @strcpy(ptr noundef %363, ptr noundef @.str) #5
  %365 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %366 = load ptr, ptr %11, align 8, !tbaa !9
  %367 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %365, ptr noundef %366)
  store i32 %367, ptr %12, align 4, !tbaa !5
  %368 = load ptr, ptr @stdout, align 8, !tbaa !9
  %369 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %370 = load ptr, ptr %11, align 8, !tbaa !9
  %371 = load i32, ptr %12, align 4, !tbaa !5
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %368, ptr noundef @.str.10, ptr noundef %369, ptr noundef %370, i32 noundef %371) #5
  %373 = load i32, ptr %12, align 4, !tbaa !5
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %377

375:                                              ; preds = %360
  %376 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %376) #5
  br label %377

377:                                              ; preds = %375, %360
  call void @print_graph(ptr noundef %6)
  %378 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %378, ptr %11, 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 %15, align 4
  br label %557

381:                                              ; preds = %377
  %382 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %383 = call ptr @strcpy(ptr noundef %382, ptr noundef @.str.3) #5
  %384 = load ptr, ptr %11, align 8, !tbaa !9
  %385 = call ptr @strcpy(ptr noundef %384, ptr noundef @.str.2) #5
  %386 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %387 = load ptr, ptr %11, align 8, !tbaa !9
  %388 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %386, ptr noundef %387)
  store i32 %388, ptr %12, align 4, !tbaa !5
  %389 = load ptr, ptr @stdout, align 8, !tbaa !9
  %390 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %391 = load ptr, ptr %11, align 8, !tbaa !9
  %392 = load i32, ptr %12, align 4, !tbaa !5
  %393 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.11, ptr noundef %390, ptr noundef %391, i32 noundef %392) #5
  %394 = load i32, ptr %12, align 4, !tbaa !5
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %396, label %398

396:                                              ; preds = %381
  %397 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %397) #5
  br label %398

398:                                              ; preds = %396, %381
  call void @print_graph(ptr noundef %6)
  %399 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %399, ptr %11, align 8, !tbaa !9
  %400 = icmp eq ptr %399, null
  br i1 %400, label %401, label %402

401:                                              ; preds = %398
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

402:                                              ; preds = %398
  %403 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %404 = call ptr @strcpy(ptr noundef %403, ptr noundef @.str.9) #5
  %405 = load ptr, ptr %11, align 8, !tbaa !9
  %406 = call ptr @strcpy(ptr noundef %405, ptr noundef @.str) #5
  %407 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %407, ptr %9, align 8, !tbaa !9
  %408 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %409 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %408, ptr noundef %9)
  store i32 %409, ptr %12, align 4, !tbaa !5
  %410 = load ptr, ptr @stdout, align 8, !tbaa !9
  %411 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %412 = load ptr, ptr %11, align 8, !tbaa !9
  %413 = load i32, ptr %12, align 4, !tbaa !5
  %414 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %410, ptr noundef @.str.12, ptr noundef %411, ptr noundef %412, i32 noundef %413) #5
  %415 = load i32, ptr %12, align 4, !tbaa !5
  %416 = icmp eq i32 %415, 0
  br i1 %416, label %417, label %419

417:                                              ; preds = %402
  %418 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %418) #5
  br label %419

419:                                              ; preds = %417, %402
  %420 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %420) #5
  call void @print_graph(ptr noundef %6)
  %421 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %421, ptr %11, align 8, !tbaa !9
  %422 = icmp eq ptr %421, null
  br i1 %422, label %423, label %424

423:                                              ; preds = %419
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

424:                                              ; preds = %419
  %425 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %426 = call ptr @strcpy(ptr noundef %425, ptr noundef @.str.3) #5
  %427 = load ptr, ptr %11, align 8, !tbaa !9
  %428 = call ptr @strcpy(ptr noundef %427, ptr noundef @.str.5) #5
  %429 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %429, ptr %9, align 8, !tbaa !9
  %430 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %431 = call i32 @graph_rem_edge(ptr noundef %6, ptr noundef %430, ptr noundef %9)
  store i32 %431, ptr %12, align 4, !tbaa !5
  %432 = load ptr, ptr @stdout, align 8, !tbaa !9
  %433 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %434 = load ptr, ptr %11, align 8, !tbaa !9
  %435 = load i32, ptr %12, align 4, !tbaa !5
  %436 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %432, ptr noundef @.str.12, ptr noundef %433, ptr noundef %434, i32 noundef %435) #5
  %437 = load i32, ptr %12, align 4, !tbaa !5
  %438 = icmp eq i32 %437, 0
  br i1 %438, label %439, label %441

439:                                              ; preds = %424
  %440 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %440) #5
  br label %441

441:                                              ; preds = %439, %424
  %442 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %442) #5
  call void @print_graph(ptr noundef %6)
  %443 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %443, ptr %11, align 8, !tbaa !9
  %444 = icmp eq ptr %443, null
  br i1 %444, label %445, label %446

445:                                              ; preds = %441
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

446:                                              ; preds = %441
  %447 = load ptr, ptr %11, align 8, !tbaa !9
  %448 = call ptr @strcpy(ptr noundef %447, ptr noundef @.str.3) #5
  %449 = load ptr, ptr %11, align 8, !tbaa !9
  %450 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %449)
  store i32 %450, ptr %12, align 4, !tbaa !5
  %451 = load ptr, ptr @stdout, align 8, !tbaa !9
  %452 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %453 = load i32, ptr %12, align 4, !tbaa !5
  %454 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %451, ptr noundef @.str.13, ptr noundef %452, i32 noundef %453) #5
  %455 = load i32, ptr %12, align 4, !tbaa !5
  %456 = icmp ne i32 %455, 0
  br i1 %456, label %457, label %459

457:                                              ; preds = %446
  %458 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %458) #5
  br label %459

459:                                              ; preds = %457, %446
  call void @print_graph(ptr noundef %6)
  %460 = call noalias ptr @malloc(i64 noundef 2) #6
  store ptr %460, ptr %11, align 8, !tbaa !9
  %461 = icmp eq ptr %460, null
  br i1 %461, label %462, label %463

462:                                              ; preds = %459
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

463:                                              ; preds = %459
  %464 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %465 = call ptr @strcpy(ptr noundef %464, ptr noundef @.str.2) #5
  %466 = load ptr, ptr %11, align 8, !tbaa !9
  %467 = call ptr @strcpy(ptr noundef %466, ptr noundef @.str.4) #5
  %468 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %469 = load ptr, ptr %11, align 8, !tbaa !9
  %470 = call i32 @graph_is_adjacent(ptr noundef %6, ptr noundef %468, ptr noundef %469)
  store i32 %470, ptr %12, align 4, !tbaa !5
  %471 = load ptr, ptr @stdout, align 8, !tbaa !9
  %472 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %473 = load ptr, ptr %11, align 8, !tbaa !9
  %474 = load i32, ptr %12, align 4, !tbaa !5
  %475 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %471, ptr noundef @.str.14, ptr noundef %472, ptr noundef %473, i32 noundef %474) #5
  %476 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %477 = call ptr @strcpy(ptr noundef %476, ptr noundef @.str) #5
  %478 = load ptr, ptr %11, align 8, !tbaa !9
  %479 = call ptr @strcpy(ptr noundef %478, ptr noundef @.str.5) #5
  %480 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %481 = load ptr, ptr %11, align 8, !tbaa !9
  %482 = call i32 @graph_is_adjacent(ptr noundef %6, ptr noundef %480, ptr noundef %481)
  store i32 %482, ptr %12, align 4, !tbaa !5
  %483 = load ptr, ptr @stdout, align 8, !tbaa !9
  %484 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %485 = load ptr, ptr %11, align 8, !tbaa !9
  %486 = load i32, ptr %12, align 4, !tbaa !5
  %487 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %483, ptr noundef @.str.15, ptr noundef %484, ptr noundef %485, i32 noundef %486) #5
  %488 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %489 = call ptr @strcpy(ptr noundef %488, ptr noundef @.str.5) #5
  %490 = load ptr, ptr %11, align 8, !tbaa !9
  %491 = call ptr @strcpy(ptr noundef %490, ptr noundef @.str.4) #5
  %492 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %493 = load ptr, ptr %11, align 8, !tbaa !9
  %494 = call i32 @graph_is_adjacent(ptr noundef %6, ptr noundef %492, ptr noundef %493)
  store i32 %494, ptr %12, align 4, !tbaa !5
  %495 = load ptr, ptr @stdout, align 8, !tbaa !9
  %496 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %497 = load ptr, ptr %11, align 8, !tbaa !9
  %498 = load i32, ptr %12, align 4, !tbaa !5
  %499 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %495, ptr noundef @.str.14, ptr noundef %496, ptr noundef %497, i32 noundef %498) #5
  %500 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %501 = call ptr @strcpy(ptr noundef %500, ptr noundef @.str.3) #5
  %502 = load ptr, ptr %11, align 8, !tbaa !9
  %503 = call ptr @strcpy(ptr noundef %502, ptr noundef @.str) #5
  %504 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %505 = load ptr, ptr %11, align 8, !tbaa !9
  %506 = call i32 @graph_is_adjacent(ptr noundef %6, ptr noundef %504, ptr noundef %505)
  store i32 %506, ptr %12, align 4, !tbaa !5
  %507 = load ptr, ptr @stdout, align 8, !tbaa !9
  %508 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %509 = load ptr, ptr %11, align 8, !tbaa !9
  %510 = load i32, ptr %12, align 4, !tbaa !5
  %511 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %507, ptr noundef @.str.15, ptr noundef %508, ptr noundef %509, i32 noundef %510) #5
  %512 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %512) #5
  %513 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %514 = call ptr @strcpy(ptr noundef %513, ptr noundef @.str.3) #5
  %515 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %516 = call i32 @graph_adjlist(ptr noundef %6, ptr noundef %515, ptr noundef %7)
  %517 = icmp ne i32 %516, 0
  br i1 %517, label %518, label %519

518:                                              ; preds = %463
  store i32 1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

519:                                              ; preds = %463
  %520 = load ptr, ptr @stdout, align 8, !tbaa !9
  %521 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
  %522 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %520, ptr noundef @.str.16, ptr noundef %521) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  %523 = load ptr, ptr %7, align 8, !tbaa !9
  %524 = getelementptr inbounds %struct.AdjList_, ptr %523, i32 0, i32 1
  %525 = getelementptr inbounds %struct.List_, ptr %524, i32 0, i32 0
  %526 = load i32, ptr %525, align 8, !tbaa !11
  store i32 %526, ptr %13, align 4, !tbaa !5
  %527 = load ptr, ptr %7, align 8, !tbaa !9
  %528 = getelementptr inbounds %struct.AdjList_, ptr %527, i32 0, i32 1
  %529 = getelementptr inbounds %struct.List_, ptr %528, i32 0, i32 3
  %530 = load ptr, ptr %529, align 8, !tbaa !14
  store ptr %530, ptr %8, align 8, !tbaa !9
  br label %531

531:                                              ; preds = %543, %519
  %532 = load i32, ptr %14, align 4, !tbaa !5
  %533 = load i32, ptr %13, align 4, !tbaa !5
  %534 = icmp slt i32 %532, %533
  br i1 %534, label %535, label %552

535:                                              ; preds = %531
  %536 = load i32, ptr %14, align 4, !tbaa !5
  %537 = add nsw i32 %536, 1
  store i32 %537, ptr %14, align 4, !tbaa !5
  %538 = load i32, ptr %14, align 4, !tbaa !5
  %539 = icmp sgt i32 %538, 1
  br i1 %539, label %540, label %543

540:                                              ; preds = %535
  %541 = load ptr, ptr @stdout, align 8, !tbaa !9
  %542 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %541, ptr noundef @.str.17) #5
  br label %543

543:                                              ; preds = %540, %535
  %544 = load ptr, ptr @stdout, align 8, !tbaa !9
  %545 = load ptr, ptr %8, align 8, !tbaa !9
  %546 = getelementptr inbounds %struct.ListElmt_, ptr %545, i32 0, i32 0
  %547 = load ptr, ptr %546, align 8, !tbaa !15
  %548 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %544, ptr noundef @.str.18, ptr noundef %547) #5
  %549 = load ptr, ptr %8, align 8, !tbaa !9
  %550 = getelementptr inbounds %struct.ListElmt_, ptr %549, i32 0, i32 1
  %551 = load ptr, ptr %550, align 8, !tbaa !17
  store ptr %551, ptr %8, align 8, !tbaa !9
  br label %531, !llvm.loop !18

552:                                              ; preds = %531
  %553 = load ptr, ptr @stdout, align 8, !tbaa !9
  %554 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %553, ptr noundef @.str.19) #5
  %555 = load ptr, ptr @stdout, align 8, !tbaa !9
  %556 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %555, ptr noundef @.str.20) #5
  call void @graph_destroy(ptr noundef %6)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %557

557:                                              ; preds = %552, %518, %462, %445, %423, %401, %380, %359, %354, %342, %327, %312, %297, %282, %268, %264, %250, %246, %232, %228, %214, %210, %196, %192, %178, %174, %160, %156, %142, %138, %124, %120, %106, %102, %88, %84, %74, %70, %60, %56, %46, %42, %32, %28, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %558 = load i32, ptr %3, align 4
  ret i32 %558
}

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

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

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

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

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

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

declare i32 @graph_adjlist(ptr noundef, ptr noundef, 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 "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 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 #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, !6, i64 8}
!12 = !{!"AdjList_", !10, i64 0, !13, i64 8}
!13 = !{!"List_", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!14 = !{!12, !10, i64 32}
!15 = !{!16, !10, i64 0}
!16 = !{!"ListElmt_", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"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 }

@.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 [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = 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 ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [2 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #7
  call void @graph_init(ptr noundef nonnull %3, ptr noundef nonnull @match_str, ptr noundef nonnull @free) #7
  %7 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  store ptr %7, ptr %5, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %284, label %9

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

15:                                               ; preds = %9
  %16 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  store ptr %16, ptr %5, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %284, label %18

18:                                               ; preds = %15
  %19 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.1, ptr noundef nonnull %16) #7
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef %22) #7
  %.not122 = icmp eq i32 %23, 0
  br i1 %.not122, label %24, label %284

24:                                               ; preds = %18
  %25 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %284, label %27

27:                                               ; preds = %24
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %29 = load ptr, ptr @stdout, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.1, ptr noundef nonnull %25) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef %31) #7
  %.not123 = icmp eq i32 %32, 0
  br i1 %.not123, label %33, label %284

33:                                               ; preds = %27
  %34 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  store ptr %34, ptr %5, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %284, label %36

36:                                               ; preds = %33
  %37 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %38 = load ptr, ptr @stdout, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.1, ptr noundef nonnull %34) #7
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef %40) #7
  %.not124 = icmp eq i32 %41, 0
  br i1 %.not124, label %42, label %284

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

45:                                               ; preds = %42
  %46 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.1, ptr noundef nonnull %43) #7
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef %49) #7
  %.not125 = icmp eq i32 %50, 0
  br i1 %.not125, label %51, label %284

51:                                               ; preds = %45
  call void @print_graph(ptr noundef nonnull %3)
  %52 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %53 = icmp eq ptr %52, null
  br i1 %53, label %284, label %54

54:                                               ; preds = %51
  %55 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  %56 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %52, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %52) #7
  %59 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %52) #7
  %.not126 = icmp eq i32 %59, 0
  br i1 %.not126, label %60, label %284

60:                                               ; preds = %54
  call void @print_graph(ptr noundef nonnull %3)
  %61 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %62 = icmp eq ptr %61, null
  br i1 %62, label %284, label %63

63:                                               ; preds = %60
  %64 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  %65 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %61, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %61) #7
  %68 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %61) #7
  %.not127 = icmp eq i32 %68, 0
  br i1 %.not127, label %69, label %284

69:                                               ; preds = %63
  call void @print_graph(ptr noundef nonnull %3)
  %70 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %71 = icmp eq ptr %70, null
  br i1 %71, label %284, label %72

72:                                               ; preds = %69
  %73 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %74 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %70, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %75 = load ptr, ptr @stdout, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %70) #7
  %77 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %70) #7
  %.not128 = icmp eq i32 %77, 0
  br i1 %.not128, label %78, label %284

78:                                               ; preds = %72
  call void @print_graph(ptr noundef nonnull %3)
  %79 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %80 = icmp eq ptr %79, null
  br i1 %80, label %284, label %81

81:                                               ; preds = %78
  %82 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %83 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %79, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %79) #7
  %86 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %79) #7
  %.not129 = icmp eq i32 %86, 0
  br i1 %.not129, label %87, label %284

87:                                               ; preds = %81
  call void @print_graph(ptr noundef nonnull %3)
  %88 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %89 = icmp eq ptr %88, null
  br i1 %89, label %284, label %90

90:                                               ; preds = %87
  %91 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %92 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %88, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %93 = load ptr, ptr @stdout, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %88) #7
  %95 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %88) #7
  %.not130 = icmp eq i32 %95, 0
  br i1 %.not130, label %96, label %284

96:                                               ; preds = %90
  call void @print_graph(ptr noundef nonnull %3)
  %97 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %98 = icmp eq ptr %97, null
  br i1 %98, label %284, label %99

99:                                               ; preds = %96
  %100 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %101 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %97, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %97) #7
  %104 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %97) #7
  %.not131 = icmp eq i32 %104, 0
  br i1 %.not131, label %105, label %284

105:                                              ; preds = %99
  call void @print_graph(ptr noundef nonnull %3)
  %106 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %107 = icmp eq ptr %106, null
  br i1 %107, label %284, label %108

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

114:                                              ; preds = %108
  call void @print_graph(ptr noundef nonnull %3)
  %115 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %116 = icmp eq ptr %115, null
  br i1 %116, label %284, label %117

117:                                              ; preds = %114
  %118 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %119 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %115, ptr noundef nonnull dereferenceable(1) @.str) #7
  %120 = load ptr, ptr @stdout, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %115) #7
  %122 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %115) #7
  %.not133 = icmp eq i32 %122, 0
  br i1 %.not133, label %123, label %284

123:                                              ; preds = %117
  call void @print_graph(ptr noundef nonnull %3)
  %124 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %125 = icmp eq ptr %124, null
  br i1 %125, label %284, label %126

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

132:                                              ; preds = %126
  call void @print_graph(ptr noundef nonnull %3)
  %133 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %134 = icmp eq ptr %133, null
  br i1 %134, label %284, label %135

135:                                              ; preds = %132
  %136 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %137 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %133, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull %133) #7
  %140 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %133) #7
  %.not135 = icmp eq i32 %140, 0
  br i1 %.not135, label %141, label %284

141:                                              ; preds = %135
  call void @print_graph(ptr noundef nonnull %3)
  %142 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %143 = icmp eq ptr %142, null
  br i1 %143, label %284, label %144

144:                                              ; preds = %141
  %145 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  %146 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %142, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  store ptr %142, ptr %5, align 8, !tbaa !5
  %147 = load ptr, ptr @stdout, align 8, !tbaa !5
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %142) #7
  %149 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %.not136 = icmp eq i32 %149, 0
  br i1 %.not136, label %150, label %284

150:                                              ; preds = %144
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %151) #7
  call void @print_graph(ptr noundef nonnull %3)
  %152 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %153 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %142, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  store ptr %142, ptr %5, align 8, !tbaa !5
  %154 = load ptr, ptr @stdout, align 8, !tbaa !5
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %142) #7
  %156 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %.not137 = icmp eq i32 %156, 0
  br i1 %.not137, label %157, label %284

157:                                              ; preds = %150
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %158) #7
  call void @print_graph(ptr noundef nonnull %3)
  %159 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %160 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %142, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  store ptr %142, ptr %5, align 8, !tbaa !5
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %142) #7
  %163 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %.not138 = icmp eq i32 %163, 0
  br i1 %.not138, label %164, label %284

164:                                              ; preds = %157
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %165) #7
  call void @print_graph(ptr noundef nonnull %3)
  %166 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  %167 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %142, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  store ptr %142, ptr %5, align 8, !tbaa !5
  %168 = load ptr, ptr @stdout, align 8, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %142) #7
  %170 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %.not139 = icmp eq i32 %170, 0
  br i1 %.not139, label %171, label %284

171:                                              ; preds = %164
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %172) #7
  call void @print_graph(ptr noundef nonnull %3)
  %173 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %174 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %142, ptr noundef nonnull dereferenceable(1) @.str) #7
  store ptr %142, ptr %5, align 8, !tbaa !5
  %175 = load ptr, ptr @stdout, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %142) #7
  %177 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %.not140 = icmp eq i32 %177, 0
  br i1 %.not140, label %178, label %284

178:                                              ; preds = %171
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %179) #7
  call void @print_graph(ptr noundef nonnull %3)
  call void @free(ptr noundef nonnull %142) #7
  %180 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  store ptr %6, ptr %5, align 8, !tbaa !5
  %181 = load ptr, ptr @stdout, align 8, !tbaa !5
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef nonnull @.str.8, ptr noundef nonnull %6) #7
  %183 = call i32 @graph_rem_vertex(ptr noundef nonnull %3, ptr noundef nonnull %5) #7
  %.not141 = icmp eq i32 %183, 0
  br i1 %.not141, label %184, label %284

184:                                              ; preds = %178
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %185) #7
  call void @print_graph(ptr noundef nonnull %3)
  %186 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %187 = icmp eq ptr %186, null
  br i1 %187, label %284, label %188

188:                                              ; preds = %184
  %189 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %190 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %186, ptr noundef nonnull dereferenceable(1) @.str) #7
  %191 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %186) #7
  %192 = load ptr, ptr @stdout, align 8, !tbaa !5
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef nonnull @.str.10, ptr noundef nonnull %6, ptr noundef nonnull %186, i32 noundef %191) #7
  %.not142 = icmp eq i32 %191, 0
  br i1 %.not142, label %195, label %194

194:                                              ; preds = %188
  call void @free(ptr noundef nonnull %186) #7
  br label %195

195:                                              ; preds = %194, %188
  call void @print_graph(ptr noundef nonnull %3)
  %196 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %197 = icmp eq ptr %196, null
  br i1 %197, label %284, label %198

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

204:                                              ; preds = %198
  call void @free(ptr noundef nonnull %196) #7
  br label %205

205:                                              ; preds = %204, %198
  call void @print_graph(ptr noundef nonnull %3)
  %206 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %207 = icmp eq ptr %206, null
  br i1 %207, label %284, label %208

208:                                              ; preds = %205
  %209 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.9) #7
  %210 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %206, ptr noundef nonnull dereferenceable(1) @.str) #7
  store ptr %206, ptr %5, align 8, !tbaa !5
  %211 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %212 = load ptr, ptr @stdout, align 8, !tbaa !5
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef nonnull @.str.12, ptr noundef nonnull %6, ptr noundef nonnull %206, i32 noundef %211) #7
  %214 = icmp eq i32 %211, 0
  br i1 %214, label %215, label %217

215:                                              ; preds = %208
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %216) #7
  br label %217

217:                                              ; preds = %215, %208
  call void @free(ptr noundef nonnull %206) #7
  call void @print_graph(ptr noundef nonnull %3)
  %218 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %219 = icmp eq ptr %218, null
  br i1 %219, label %284, label %220

220:                                              ; preds = %217
  %221 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %222 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %218, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  store ptr %218, ptr %5, align 8, !tbaa !5
  %223 = call i32 @graph_rem_edge(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #7
  %224 = load ptr, ptr @stdout, align 8, !tbaa !5
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef nonnull @.str.12, ptr noundef nonnull %6, ptr noundef nonnull %218, i32 noundef %223) #7
  %226 = icmp eq i32 %223, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %220
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %228) #7
  br label %229

229:                                              ; preds = %227, %220
  call void @free(ptr noundef nonnull %218) #7
  call void @print_graph(ptr noundef nonnull %3)
  %230 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %231 = icmp eq ptr %230, null
  br i1 %231, label %284, label %232

232:                                              ; preds = %229
  %233 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %230, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %234 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %230) #7
  %235 = load ptr, ptr @stdout, align 8, !tbaa !5
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef nonnull @.str.13, ptr noundef nonnull %6, i32 noundef %234) #7
  %.not144 = icmp eq i32 %234, 0
  br i1 %.not144, label %238, label %237

237:                                              ; preds = %232
  call void @free(ptr noundef nonnull %230) #7
  br label %238

238:                                              ; preds = %237, %232
  call void @print_graph(ptr noundef nonnull %3)
  %239 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #8
  %240 = icmp eq ptr %239, null
  br i1 %240, label %284, label %241

241:                                              ; preds = %238
  %242 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %243 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %239, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %244 = call i32 @graph_is_adjacent(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %239) #7
  %245 = load ptr, ptr @stdout, align 8, !tbaa !5
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef nonnull @.str.14, ptr noundef nonnull %6, ptr noundef nonnull %239, i32 noundef %244) #7
  %247 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #7
  %248 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %239, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %249 = call i32 @graph_is_adjacent(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %239) #7
  %250 = load ptr, ptr @stdout, align 8, !tbaa !5
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef nonnull @.str.15, ptr noundef nonnull %6, ptr noundef nonnull %239, i32 noundef %249) #7
  %252 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %253 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %239, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %254 = call i32 @graph_is_adjacent(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %239) #7
  %255 = load ptr, ptr @stdout, align 8, !tbaa !5
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef nonnull @.str.14, ptr noundef nonnull %6, ptr noundef nonnull %239, i32 noundef %254) #7
  %257 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %258 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %239, ptr noundef nonnull dereferenceable(1) @.str) #7
  %259 = call i32 @graph_is_adjacent(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %239) #7
  %260 = load ptr, ptr @stdout, align 8, !tbaa !5
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef nonnull @.str.15, ptr noundef nonnull %6, ptr noundef nonnull %239, i32 noundef %259) #7
  call void @free(ptr noundef nonnull %239) #7
  %262 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %263 = call i32 @graph_adjlist(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %4) #7
  %.not145 = icmp eq i32 %263, 0
  br i1 %.not145, label %264, label %284

264:                                              ; preds = %241
  %265 = load ptr, ptr @stdout, align 8, !tbaa !5
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef nonnull @.str.16, ptr noundef nonnull %6) #7
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds i8, ptr %267, i64 8
  %269 = load i32, ptr %268, align 8, !tbaa !9
  %270 = icmp sgt i32 %269, 0
  br i1 %270, label %271, label %._crit_edge

271:                                              ; preds = %264
  %272 = getelementptr inbounds i8, ptr %267, i64 32
  %.099149.peel = load ptr, ptr %272, align 8, !tbaa !5
  %.pre = load ptr, ptr @stdout, align 8, !tbaa !5
  %.pre151 = load ptr, ptr %.099149.peel, align 8, !tbaa !13
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.pre, ptr noundef nonnull @.str.18, ptr noundef %.pre151) #7
  %exitcond.peel.not = icmp eq i32 %269, 1
  br i1 %exitcond.peel.not, label %._crit_edge, label %.lr.ph.peel.next

.lr.ph.peel.next:                                 ; preds = %271, %.lr.ph.peel.next
  %.099149.pn = phi ptr [ %.099149, %.lr.ph.peel.next ], [ %.099149.peel, %271 ]
  %.0148 = phi i32 [ %274, %.lr.ph.peel.next ], [ 1, %271 ]
  %.099149.in = getelementptr inbounds i8, ptr %.099149.pn, i64 8
  %.099149 = load ptr, ptr %.099149.in, align 8, !tbaa !5
  %274 = add nuw nsw i32 %.0148, 1
  %275 = load ptr, ptr @stdout, align 8, !tbaa !5
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef nonnull @.str.17) #7
  %277 = load ptr, ptr @stdout, align 8, !tbaa !5
  %278 = load ptr, ptr %.099149, align 8, !tbaa !13
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef nonnull @.str.18, ptr noundef %278) #7
  %exitcond.not = icmp eq i32 %274, %269
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.peel.next, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph.peel.next, %271, %264
  %280 = load ptr, ptr @stdout, align 8, !tbaa !5
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef nonnull @.str.19) #7
  %282 = load ptr, ptr @stdout, align 8, !tbaa !5
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef nonnull @.str.20) #7
  call void @graph_destroy(ptr noundef nonnull %3) #7
  br label %284

284:                                              ; preds = %241, %238, %229, %217, %205, %195, %184, %178, %171, %164, %157, %150, %144, %141, %135, %132, %126, %123, %117, %114, %108, %105, %99, %96, %90, %87, %81, %78, %72, %69, %63, %60, %54, %51, %45, %42, %36, %33, %27, %24, %18, %15, %9, %2, %._crit_edge
  %.098 = phi i32 [ 0, %._crit_edge ], [ 1, %2 ], [ 1, %9 ], [ 1, %15 ], [ 1, %18 ], [ 1, %24 ], [ 1, %27 ], [ 1, %33 ], [ 1, %36 ], [ 1, %42 ], [ 1, %45 ], [ 1, %51 ], [ 1, %54 ], [ 1, %60 ], [ 1, %63 ], [ 1, %69 ], [ 1, %72 ], [ 1, %78 ], [ 1, %81 ], [ 1, %87 ], [ 1, %90 ], [ 1, %96 ], [ 1, %99 ], [ 1, %105 ], [ 1, %108 ], [ 1, %114 ], [ 1, %117 ], [ 1, %123 ], [ 1, %126 ], [ 1, %132 ], [ 1, %135 ], [ 1, %141 ], [ 1, %144 ], [ 1, %150 ], [ 1, %157 ], [ 1, %164 ], [ 1, %171 ], [ 1, %178 ], [ 1, %184 ], [ 1, %195 ], [ 1, %205 ], [ 1, %217 ], [ 1, %229 ], [ 1, %238 ], [ 1, %241 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  ret i32 %.098
}

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) #3

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

; 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 #5

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

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 @graph_rem_edge(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @graph_adjlist(ptr noundef, ptr noundef, 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 nounwind willreturn allockind("free") memory(argmem: readwrite, 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 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"AdjList_", !6, i64 0, !11, i64 8}
!11 = !{!"List_", !12, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"ListElmt_", !6, i64 0, !6, i64 8}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.peeled.count", i32 1}


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