; LLVM IR from stivalaa/EstimNetDirected :: Test/TestChangeStatsUndirected (testChangeStatsUndirectedMain)

; 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.timeval = type { i64, i64 }
%struct.graph_s = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, i32, ptr, i32, ptr, ptr, i32, i32, ptr, i32, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [44 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 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 double, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.timeval, align 8
  %19 = alloca %struct.timeval, align 8
  %20 = alloca %struct.timeval, align 8
  %21 = alloca i32, align 4
  %22 = 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 8, ptr %6) #6
  store double 2.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr null, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %23 = call i64 @time(ptr noundef null) #6
  %24 = trunc i64 %23 to i32
  call void @srand(i32 noundef %24) #6
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 2
  br i1 %26, label %30, label %27

27:                                               ; preds = %2
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 3
  br i1 %29, label %30, label %36

30:                                               ; preds = %27, %2
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str, ptr noundef %34) #6
  call void @exit(i32 noundef 1) #7
  unreachable

36:                                               ; preds = %27
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  store ptr %39, ptr %10, align 8, !tbaa !9
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %42, label %57

42:                                               ; preds = %36
  store i32 1, ptr %15, align 4, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 2
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  store ptr %45, ptr %16, align 8, !tbaa !9
  %46 = load ptr, ptr %16, align 8, !tbaa !9
  %47 = call noalias ptr @fopen(ptr noundef %46, ptr noundef @.str.1)
  store ptr %47, ptr %17, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %56, label %49

49:                                               ; preds = %42
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = load ptr, ptr %16, align 8, !tbaa !9
  %52 = call ptr @__errno_location() #8
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = call ptr @strerror(i32 noundef %53) #6
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.2, ptr noundef %51, ptr noundef %54) #6
  call void @exit(i32 noundef 1) #7
  unreachable

56:                                               ; preds = %42
  br label %58

57:                                               ; preds = %36
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %57, %56
  %59 = load ptr, ptr %10, align 8, !tbaa !9
  %60 = call noalias ptr @fopen(ptr noundef %59, ptr noundef @.str.1)
  store ptr %60, ptr %11, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %69, label %62

62:                                               ; preds = %58
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  %65 = call ptr @__errno_location() #8
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = call ptr @strerror(i32 noundef %66) #6
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.3, ptr noundef %64, ptr noundef %67) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %470

69:                                               ; preds = %58
  %70 = call i32 @gettimeofday(ptr noundef %18, ptr noundef null) #6
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.4, ptr noundef %72) #6
  %74 = load ptr, ptr %11, align 8, !tbaa !9
  %75 = call i32 @get_num_vertices_from_arclist_file(ptr noundef %74)
  store i32 %75, ptr %12, align 4, !tbaa !5
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = call ptr @allocate_graph(i32 noundef %76, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store ptr %77, ptr %13, align 8, !tbaa !9
  %78 = load ptr, ptr %10, align 8, !tbaa !9
  %79 = call noalias ptr @fopen(ptr noundef %78, ptr noundef @.str.1)
  store ptr %79, ptr %11, align 8, !tbaa !9
  %80 = icmp ne ptr %79, null
  br i1 %80, label %88, label %81

81:                                               ; preds = %69
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = load ptr, ptr %10, align 8, !tbaa !9
  %84 = call ptr @__errno_location() #8
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = call ptr @strerror(i32 noundef %85) #6
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.3, ptr noundef %83, ptr noundef %86) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %470

88:                                               ; preds = %69
  %89 = load ptr, ptr %11, align 8, !tbaa !9
  %90 = load ptr, ptr %13, align 8, !tbaa !9
  %91 = call ptr @load_graph_from_arclist_file(ptr noundef %89, ptr noundef %90, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %91, ptr %13, align 8, !tbaa !9
  %92 = call i32 @gettimeofday(ptr noundef %19, ptr noundef null) #6
  %93 = call i32 @timeval_subtract(ptr noundef %20, ptr noundef %19, ptr noundef %18)
  %94 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 0
  %95 = load i64, ptr %94, align 8, !tbaa !13
  %96 = mul nsw i64 1000, %95
  %97 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !16
  %99 = sdiv i64 %98, 1000
  %100 = add nsw i64 %96, %99
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %21, align 4, !tbaa !5
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = load i32, ptr %21, align 4, !tbaa !5
  %104 = sitofp i32 %103 to double
  %105 = fdiv double %104, 1.000000e+03
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.5, double noundef %105) #6
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %108 = call i32 @gettimeofday(ptr noundef %18, ptr noundef null) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %211, %174, %167, %88
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %152

113:                                              ; preds = %110
  %114 = load ptr, ptr %17, align 8, !tbaa !9
  %115 = call i32 @feof(ptr noundef %114) #6
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %113
  br label %212

118:                                              ; preds = %113
  %119 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %120 = load ptr, ptr %17, align 8, !tbaa !9
  %121 = call ptr @fgets(ptr noundef %119, i32 noundef 1023, ptr noundef %120)
  %122 = icmp ne ptr %121, null
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  br label %212

124:                                              ; preds = %118
  %125 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %126 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %125, ptr noundef @.str.7, ptr noundef %8, ptr noundef %9) #6
  %127 = icmp ne i32 %126, 2
  br i1 %127, label %128, label %131

128:                                              ; preds = %124
  %129 = load ptr, ptr @stderr, align 8, !tbaa !9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.8) #6
  call void @exit(i32 noundef 1) #7
  unreachable

131:                                              ; preds = %124
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.graph_s, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !17
  %136 = icmp uge i32 %132, %135
  br i1 %136, label %137, label %141

137:                                              ; preds = %131
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.9, i32 noundef %139) #6
  call void @exit(i32 noundef 1) #7
  unreachable

141:                                              ; preds = %131
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = load ptr, ptr %13, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.graph_s, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !17
  %146 = icmp uge i32 %142, %145
  br i1 %146, label %147, label %151

147:                                              ; preds = %141
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = load i32, ptr %9, align 4, !tbaa !5
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.10, i32 noundef %149) #6
  call void @exit(i32 noundef 1) #7
  unreachable

151:                                              ; preds = %141
  br label %163

152:                                              ; preds = %110
  %153 = call i32 @rand() #6
  %154 = load ptr, ptr %13, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.graph_s, ptr %154, i32 0, i32 0
  %156 = load i32, ptr %155, align 8, !tbaa !17
  %157 = urem i32 %153, %156
  store i32 %157, ptr %8, align 4, !tbaa !5
  %158 = call i32 @rand() #6
  %159 = load ptr, ptr %13, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.graph_s, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 8, !tbaa !17
  %162 = urem i32 %158, %161
  store i32 %162, ptr %9, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %152, %151
  %164 = load i32, ptr %8, align 4, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = icmp eq i32 %164, %165
  br i1 %166, label %167, label %168

167:                                              ; preds = %163
  br label %109

168:                                              ; preds = %163
  %169 = load ptr, ptr %13, align 8, !tbaa !9
  %170 = load i32, ptr %8, align 4, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = call i32 @isEdge(ptr noundef %169, i32 noundef %170, i32 noundef %171)
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %168
  br label %109

175:                                              ; preds = %168
  %176 = load i32, ptr %8, align 4, !tbaa !5
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = load ptr, ptr %13, align 8, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = call double @changeAltStars(ptr noundef %178, i32 noundef %179, i32 noundef %180, double noundef 2.000000e+00)
  %182 = load ptr, ptr %13, align 8, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !5
  %184 = load i32, ptr %9, align 4, !tbaa !5
  %185 = call double @changeAltKTriangles(ptr noundef %182, i32 noundef %183, i32 noundef %184, double noundef 2.000000e+00)
  %186 = load ptr, ptr %13, align 8, !tbaa !9
  %187 = load i32, ptr %8, align 4, !tbaa !5
  %188 = load i32, ptr %9, align 4, !tbaa !5
  %189 = call double @changeAltTwoPaths(ptr noundef %186, i32 noundef %187, i32 noundef %188, double noundef 2.000000e+00)
  %190 = load ptr, ptr %13, align 8, !tbaa !9
  %191 = load i32, ptr %8, align 4, !tbaa !5
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = call double @changeThreePaths(ptr noundef %190, i32 noundef %191, i32 noundef %192, double noundef 2.000000e+00)
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = load i32, ptr %8, align 4, !tbaa !5
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = call double @changeFourCycles(ptr noundef %194, i32 noundef %195, i32 noundef %196, double noundef 2.000000e+00)
  %198 = load ptr, ptr %13, align 8, !tbaa !9
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = load i32, ptr %9, align 4, !tbaa !5
  %201 = call double @changeTwoStars(ptr noundef %198, i32 noundef %199, i32 noundef %200, double noundef 2.000000e+00)
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %176, i32 noundef %177, double noundef %181, double noundef %185, double noundef %189, double noundef %193, double noundef %197, double noundef %201)
  %203 = load i32, ptr %14, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %14, align 4, !tbaa !5
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %211, label %207

207:                                              ; preds = %175
  %208 = load i32, ptr %14, align 4, !tbaa !5
  %209 = icmp sge i32 %208, 1000
  br i1 %209, label %210, label %211

210:                                              ; preds = %207
  br label %212

211:                                              ; preds = %207, %175
  br label %109

212:                                              ; preds = %210, %123, %117
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %229

215:                                              ; preds = %212
  %216 = load ptr, ptr %17, align 8, !tbaa !9
  %217 = call i32 @fclose(ptr noundef %216)
  %218 = load ptr, ptr %16, align 8, !tbaa !9
  %219 = call noalias ptr @fopen(ptr noundef %218, ptr noundef @.str.1)
  store ptr %219, ptr %17, align 8, !tbaa !9
  %220 = icmp ne ptr %219, null
  br i1 %220, label %228, label %221

221:                                              ; preds = %215
  %222 = load ptr, ptr @stderr, align 8, !tbaa !9
  %223 = load ptr, ptr %16, align 8, !tbaa !9
  %224 = call ptr @__errno_location() #8
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = call ptr @strerror(i32 noundef %225) #6
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.2, ptr noundef %223, ptr noundef %226) #6
  call void @exit(i32 noundef 1) #7
  unreachable

228:                                              ; preds = %215
  br label %229

229:                                              ; preds = %228, %212
  %230 = call i32 @gettimeofday(ptr noundef %19, ptr noundef null) #6
  %231 = call i32 @timeval_subtract(ptr noundef %20, ptr noundef %19, ptr noundef %18)
  %232 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 0
  %233 = load i64, ptr %232, align 8, !tbaa !13
  %234 = mul nsw i64 1000, %233
  %235 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 1
  %236 = load i64, ptr %235, align 8, !tbaa !16
  %237 = sdiv i64 %236, 1000
  %238 = add nsw i64 %234, %237
  %239 = trunc i64 %238 to i32
  store i32 %239, ptr %21, align 4, !tbaa !5
  %240 = load ptr, ptr @stderr, align 8, !tbaa !9
  %241 = load i32, ptr %21, align 4, !tbaa !5
  %242 = sitofp i32 %241 to double
  %243 = fdiv double %242, 1.000000e+03
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.12, double noundef %243) #6
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %343, %324, %229
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %289

250:                                              ; preds = %247
  %251 = load ptr, ptr %17, align 8, !tbaa !9
  %252 = call i32 @feof(ptr noundef %251) #6
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %254, label %255

254:                                              ; preds = %250
  br label %344

255:                                              ; preds = %250
  %256 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %257 = load ptr, ptr %17, align 8, !tbaa !9
  %258 = call ptr @fgets(ptr noundef %256, i32 noundef 1023, ptr noundef %257)
  %259 = icmp ne ptr %258, null
  br i1 %259, label %261, label %260

260:                                              ; preds = %255
  br label %344

261:                                              ; preds = %255
  %262 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %263 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %262, ptr noundef @.str.7, ptr noundef %8, ptr noundef %9) #6
  %264 = icmp ne i32 %263, 2
  br i1 %264, label %265, label %268

265:                                              ; preds = %261
  %266 = load ptr, ptr @stderr, align 8, !tbaa !9
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.8) #6
  call void @exit(i32 noundef 1) #7
  unreachable

268:                                              ; preds = %261
  %269 = load i32, ptr %8, align 4, !tbaa !5
  %270 = load ptr, ptr %13, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.graph_s, ptr %270, i32 0, i32 0
  %272 = load i32, ptr %271, align 8, !tbaa !17
  %273 = icmp uge i32 %269, %272
  br i1 %273, label %274, label %278

274:                                              ; preds = %268
  %275 = load ptr, ptr @stderr, align 8, !tbaa !9
  %276 = load i32, ptr %8, align 4, !tbaa !5
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef @.str.9, i32 noundef %276) #6
  call void @exit(i32 noundef 1) #7
  unreachable

278:                                              ; preds = %268
  %279 = load i32, ptr %9, align 4, !tbaa !5
  %280 = load ptr, ptr %13, align 8, !tbaa !9
  %281 = getelementptr inbounds %struct.graph_s, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %281, align 8, !tbaa !17
  %283 = icmp uge i32 %279, %282
  br i1 %283, label %284, label %288

284:                                              ; preds = %278
  %285 = load ptr, ptr @stderr, align 8, !tbaa !9
  %286 = load i32, ptr %9, align 4, !tbaa !5
  %287 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %285, ptr noundef @.str.10, i32 noundef %286) #6
  call void @exit(i32 noundef 1) #7
  unreachable

288:                                              ; preds = %278
  br label %314

289:                                              ; preds = %247
  br label %290

290:                                              ; preds = %311, %289
  %291 = call i32 @rand() #6
  %292 = load ptr, ptr %13, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.graph_s, ptr %292, i32 0, i32 0
  %294 = load i32, ptr %293, align 8, !tbaa !17
  %295 = urem i32 %291, %294
  store i32 %295, ptr %8, align 4, !tbaa !5
  %296 = call i32 @rand() #6
  %297 = load ptr, ptr %13, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.graph_s, ptr %297, i32 0, i32 0
  %299 = load i32, ptr %298, align 8, !tbaa !17
  %300 = urem i32 %296, %299
  store i32 %300, ptr %9, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %290
  %302 = load i32, ptr %8, align 4, !tbaa !5
  %303 = load i32, ptr %9, align 4, !tbaa !5
  %304 = icmp eq i32 %302, %303
  br i1 %304, label %311, label %305

305:                                              ; preds = %301
  %306 = load ptr, ptr %13, align 8, !tbaa !9
  %307 = load i32, ptr %8, align 4, !tbaa !5
  %308 = load i32, ptr %9, align 4, !tbaa !5
  %309 = call i32 @isEdge(ptr noundef %306, i32 noundef %307, i32 noundef %308)
  %310 = icmp ne i32 %309, 0
  br label %311

311:                                              ; preds = %305, %301
  %312 = phi i1 [ true, %301 ], [ %310, %305 ]
  br i1 %312, label %290, label %313, !llvm.loop !19

313:                                              ; preds = %311
  br label %314

314:                                              ; preds = %313, %288
  %315 = load i32, ptr %8, align 4, !tbaa !5
  %316 = load i32, ptr %9, align 4, !tbaa !5
  %317 = icmp eq i32 %315, %316
  br i1 %317, label %324, label %318

318:                                              ; preds = %314
  %319 = load ptr, ptr %13, align 8, !tbaa !9
  %320 = load i32, ptr %8, align 4, !tbaa !5
  %321 = load i32, ptr %9, align 4, !tbaa !5
  %322 = call i32 @isEdge(ptr noundef %319, i32 noundef %320, i32 noundef %321)
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %325

324:                                              ; preds = %318, %314
  br label %246

325:                                              ; preds = %318
  %326 = load ptr, ptr %13, align 8, !tbaa !9
  %327 = load i32, ptr %8, align 4, !tbaa !5
  %328 = load i32, ptr %9, align 4, !tbaa !5
  call void @insertEdge(ptr noundef %326, i32 noundef %327, i32 noundef %328)
  %329 = load i32, ptr %8, align 4, !tbaa !5
  %330 = load i32, ptr %9, align 4, !tbaa !5
  %331 = load ptr, ptr %13, align 8, !tbaa !9
  %332 = getelementptr inbounds %struct.graph_s, ptr %331, i32 0, i32 9
  %333 = load i32, ptr %332, align 8, !tbaa !21
  %334 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %329, i32 noundef %330, i32 noundef %333)
  %335 = load i32, ptr %14, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %14, align 4, !tbaa !5
  %337 = load i32, ptr %15, align 4, !tbaa !5
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %343, label %339

339:                                              ; preds = %325
  %340 = load i32, ptr %14, align 4, !tbaa !5
  %341 = icmp sge i32 %340, 1000
  br i1 %341, label %342, label %343

342:                                              ; preds = %339
  br label %344

343:                                              ; preds = %339, %325
  br label %246

344:                                              ; preds = %342, %260, %254
  %345 = load i32, ptr %15, align 4, !tbaa !5
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %347, label %361

347:                                              ; preds = %344
  %348 = load ptr, ptr %17, align 8, !tbaa !9
  %349 = call i32 @fclose(ptr noundef %348)
  %350 = load ptr, ptr %16, align 8, !tbaa !9
  %351 = call noalias ptr @fopen(ptr noundef %350, ptr noundef @.str.1)
  store ptr %351, ptr %17, align 8, !tbaa !9
  %352 = icmp ne ptr %351, null
  br i1 %352, label %360, label %353

353:                                              ; preds = %347
  %354 = load ptr, ptr @stderr, align 8, !tbaa !9
  %355 = load ptr, ptr %16, align 8, !tbaa !9
  %356 = call ptr @__errno_location() #8
  %357 = load i32, ptr %356, align 4, !tbaa !5
  %358 = call ptr @strerror(i32 noundef %357) #6
  %359 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %354, ptr noundef @.str.2, ptr noundef %355, ptr noundef %358) #6
  call void @exit(i32 noundef 1) #7
  unreachable

360:                                              ; preds = %347
  br label %361

361:                                              ; preds = %360, %344
  %362 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %363

363:                                              ; preds = %461, %442, %361
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %15, align 4, !tbaa !5
  %366 = icmp ne i32 %365, 0
  br i1 %366, label %367, label %406

367:                                              ; preds = %364
  %368 = load ptr, ptr %17, align 8, !tbaa !9
  %369 = call i32 @feof(ptr noundef %368) #6
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %372

371:                                              ; preds = %367
  br label %462

372:                                              ; preds = %367
  %373 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %374 = load ptr, ptr %17, align 8, !tbaa !9
  %375 = call ptr @fgets(ptr noundef %373, i32 noundef 1023, ptr noundef %374)
  %376 = icmp ne ptr %375, null
  br i1 %376, label %378, label %377

377:                                              ; preds = %372
  br label %462

378:                                              ; preds = %372
  %379 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %380 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %379, ptr noundef @.str.7, ptr noundef %8, ptr noundef %9) #6
  %381 = icmp ne i32 %380, 2
  br i1 %381, label %382, label %385

382:                                              ; preds = %378
  %383 = load ptr, ptr @stderr, align 8, !tbaa !9
  %384 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.8) #6
  call void @exit(i32 noundef 1) #7
  unreachable

385:                                              ; preds = %378
  %386 = load i32, ptr %8, align 4, !tbaa !5
  %387 = load ptr, ptr %13, align 8, !tbaa !9
  %388 = getelementptr inbounds %struct.graph_s, ptr %387, i32 0, i32 0
  %389 = load i32, ptr %388, align 8, !tbaa !17
  %390 = icmp uge i32 %386, %389
  br i1 %390, label %391, label %395

391:                                              ; preds = %385
  %392 = load ptr, ptr @stderr, align 8, !tbaa !9
  %393 = load i32, ptr %8, align 4, !tbaa !5
  %394 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef @.str.9, i32 noundef %393) #6
  call void @exit(i32 noundef 1) #7
  unreachable

395:                                              ; preds = %385
  %396 = load i32, ptr %9, align 4, !tbaa !5
  %397 = load ptr, ptr %13, align 8, !tbaa !9
  %398 = getelementptr inbounds %struct.graph_s, ptr %397, i32 0, i32 0
  %399 = load i32, ptr %398, align 8, !tbaa !17
  %400 = icmp uge i32 %396, %399
  br i1 %400, label %401, label %405

401:                                              ; preds = %395
  %402 = load ptr, ptr @stderr, align 8, !tbaa !9
  %403 = load i32, ptr %9, align 4, !tbaa !5
  %404 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %402, ptr noundef @.str.10, i32 noundef %403) #6
  call void @exit(i32 noundef 1) #7
  unreachable

405:                                              ; preds = %395
  br label %432

406:                                              ; preds = %364
  br label %407

407:                                              ; preds = %429, %406
  %408 = call i32 @rand() #6
  %409 = load ptr, ptr %13, align 8, !tbaa !9
  %410 = getelementptr inbounds %struct.graph_s, ptr %409, i32 0, i32 0
  %411 = load i32, ptr %410, align 8, !tbaa !17
  %412 = urem i32 %408, %411
  store i32 %412, ptr %8, align 4, !tbaa !5
  %413 = call i32 @rand() #6
  %414 = load ptr, ptr %13, align 8, !tbaa !9
  %415 = getelementptr inbounds %struct.graph_s, ptr %414, i32 0, i32 0
  %416 = load i32, ptr %415, align 8, !tbaa !17
  %417 = urem i32 %413, %416
  store i32 %417, ptr %9, align 4, !tbaa !5
  br label %418

418:                                              ; preds = %407
  %419 = load i32, ptr %8, align 4, !tbaa !5
  %420 = load i32, ptr %9, align 4, !tbaa !5
  %421 = icmp eq i32 %419, %420
  br i1 %421, label %429, label %422

422:                                              ; preds = %418
  %423 = load ptr, ptr %13, align 8, !tbaa !9
  %424 = load i32, ptr %8, align 4, !tbaa !5
  %425 = load i32, ptr %9, align 4, !tbaa !5
  %426 = call i32 @isEdge(ptr noundef %423, i32 noundef %424, i32 noundef %425)
  %427 = icmp ne i32 %426, 0
  %428 = xor i1 %427, true
  br label %429

429:                                              ; preds = %422, %418
  %430 = phi i1 [ true, %418 ], [ %428, %422 ]
  br i1 %430, label %407, label %431, !llvm.loop !22

431:                                              ; preds = %429
  br label %432

432:                                              ; preds = %431, %405
  %433 = load i32, ptr %8, align 4, !tbaa !5
  %434 = load i32, ptr %9, align 4, !tbaa !5
  %435 = icmp eq i32 %433, %434
  br i1 %435, label %442, label %436

436:                                              ; preds = %432
  %437 = load ptr, ptr %13, align 8, !tbaa !9
  %438 = load i32, ptr %8, align 4, !tbaa !5
  %439 = load i32, ptr %9, align 4, !tbaa !5
  %440 = call i32 @isEdge(ptr noundef %437, i32 noundef %438, i32 noundef %439)
  %441 = icmp ne i32 %440, 0
  br i1 %441, label %443, label %442

442:                                              ; preds = %436, %432
  br label %363

443:                                              ; preds = %436
  %444 = load ptr, ptr %13, align 8, !tbaa !9
  %445 = load i32, ptr %8, align 4, !tbaa !5
  %446 = load i32, ptr %9, align 4, !tbaa !5
  call void @removeEdge(ptr noundef %444, i32 noundef %445, i32 noundef %446)
  %447 = load i32, ptr %8, align 4, !tbaa !5
  %448 = load i32, ptr %9, align 4, !tbaa !5
  %449 = load ptr, ptr %13, align 8, !tbaa !9
  %450 = getelementptr inbounds %struct.graph_s, ptr %449, i32 0, i32 9
  %451 = load i32, ptr %450, align 8, !tbaa !21
  %452 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %447, i32 noundef %448, i32 noundef %451)
  %453 = load i32, ptr %14, align 4, !tbaa !5
  %454 = add nsw i32 %453, 1
  store i32 %454, ptr %14, align 4, !tbaa !5
  %455 = load i32, ptr %15, align 4, !tbaa !5
  %456 = icmp ne i32 %455, 0
  br i1 %456, label %461, label %457

457:                                              ; preds = %443
  %458 = load i32, ptr %14, align 4, !tbaa !5
  %459 = icmp sge i32 %458, 1000
  br i1 %459, label %460, label %461

460:                                              ; preds = %457
  br label %462

461:                                              ; preds = %457, %443
  br label %363

462:                                              ; preds = %460, %377, %371
  %463 = load i32, ptr %15, align 4, !tbaa !5
  %464 = icmp ne i32 %463, 0
  br i1 %464, label %465, label %468

465:                                              ; preds = %462
  %466 = load ptr, ptr %17, align 8, !tbaa !9
  %467 = call i32 @fclose(ptr noundef %466)
  br label %468

468:                                              ; preds = %465, %462
  %469 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free_graph(ptr noundef %469)
  call void @exit(i32 noundef 0) #7
  unreachable

470:                                              ; preds = %81, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %471 = load i32, ptr %3, align 4
  ret i32 %471
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #5

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #2

declare i32 @get_num_vertices_from_arclist_file(ptr noundef) #4

declare ptr @allocate_graph(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare ptr @load_graph_from_arclist_file(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @timeval_subtract(ptr noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare i32 @rand() #2

declare i32 @isEdge(ptr noundef, i32 noundef, i32 noundef) #4

declare double @changeAltStars(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare double @changeAltKTriangles(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare double @changeAltTwoPaths(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare double @changeThreePaths(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare double @changeTwoStars(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare i32 @fclose(ptr noundef) #4

declare void @insertEdge(ptr noundef, i32 noundef, i32 noundef) #4

declare void @removeEdge(ptr noundef, i32 noundef, i32 noundef) #4

declare void @free_graph(ptr noundef) #4

; 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(none) "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 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(none) }

!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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"timeval", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"graph_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !10, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !10, i64 136, !6, i64 144, !10, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !10, i64 224, !6, i64 232, !6, i64 236, !10, i64 240, !10, i64 248, !6, i64 256, !10, i64 264, !6, i64 272, !10, i64 280, !10, i64 288, !6, i64 296, !6, i64 300, !10, i64 304, !6, i64 312, !10, i64 320}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!18, !6, i64 56}
!22 = distinct !{!22, !20}


; 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.timeval = type { i64, i64 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [44 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [1024 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.timeval, align 8
  %7 = alloca %struct.timeval, align 8
  %8 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %9 = tail call i64 @time(ptr noundef null) #7
  %10 = trunc i64 %9 to i32
  tail call void @srand(i32 noundef %10) #7
  %11 = add i32 %0, -4
  %or.cond = icmp ult i32 %11, -2
  br i1 %or.cond, label %12, label %16

12:                                               ; preds = %2
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str, ptr noundef %14) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %.not118.not = icmp eq i32 %0, 3
  br i1 %.not118.not, label %19, label %29

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = tail call noalias ptr @fopen(ptr noundef %21, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %23, label %29

23:                                               ; preds = %19
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call ptr @__errno_location() #10
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = tail call ptr @strerror(i32 noundef %26) #7
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.2, ptr noundef %21, ptr noundef %27) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

29:                                               ; preds = %16, %19
  %.084 = phi ptr [ %21, %19 ], [ null, %16 ]
  %.0 = phi ptr [ %22, %19 ], [ null, %16 ]
  %30 = tail call noalias ptr @fopen(ptr noundef %18, ptr noundef nonnull @.str.1)
  %.not115 = icmp eq ptr %30, null
  br i1 %.not115, label %266, label %31

31:                                               ; preds = %29
  %32 = call i32 @gettimeofday(ptr noundef nonnull %6, ptr noundef null) #7
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.4, ptr noundef %18) #8
  %35 = tail call i32 @get_num_vertices_from_arclist_file(ptr noundef nonnull %30) #7
  %36 = tail call ptr @allocate_graph(i32 noundef %35, i32 noundef 0, i32 noundef 0, i32 noundef 0) #7
  %37 = tail call noalias ptr @fopen(ptr noundef %18, ptr noundef nonnull @.str.1)
  %.not116 = icmp eq ptr %37, null
  br i1 %.not116, label %266, label %38

38:                                               ; preds = %31
  %39 = tail call ptr @load_graph_from_arclist_file(ptr noundef nonnull %37, ptr noundef %36, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null) #7
  %40 = call i32 @gettimeofday(ptr noundef nonnull %7, ptr noundef null) #7
  %41 = call i32 @timeval_subtract(ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef nonnull %6) #7
  %42 = load i64, ptr %8, align 8, !tbaa !11
  %43 = mul nsw i64 %42, 1000
  %44 = getelementptr inbounds i8, ptr %8, i64 8
  %45 = load i64, ptr %44, align 8, !tbaa !14
  %46 = sdiv i64 %45, 1000
  %47 = add nsw i64 %46, %43
  %48 = trunc i64 %47 to i32
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = sitofp i32 %48 to double
  %51 = fdiv double %50, 1.000000e+03
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.5, double noundef %51) #8
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %54 = call i32 @gettimeofday(ptr noundef nonnull %6, ptr noundef null) #7
  br i1 %.not118.not, label %.outer150.preheader, label %.outer150.us

.outer150.preheader:                              ; preds = %38
  %55 = call i32 @feof(ptr noundef %.0) #7
  %.not119159232 = icmp eq i32 %55, 0
  br i1 %.not119159232, label %.lr.ph, label %.outer150.split._crit_edge

.outer150.us:                                     ; preds = %38, %.split.us.us
  %.086.ph.us = phi i32 [ %85, %.split.us.us ], [ 0, %38 ]
  br label %.backedge.us.us

.backedge.us.us:                                  ; preds = %.backedge.us.us.backedge, %.outer150.us
  %56 = call i32 @rand() #7
  %57 = load i32, ptr %39, align 8, !tbaa !15
  %58 = urem i32 %56, %57
  store i32 %58, ptr %4, align 4, !tbaa !9
  %59 = call i32 @rand() #7
  %60 = load i32, ptr %39, align 8, !tbaa !15
  %61 = urem i32 %59, %60
  store i32 %61, ptr %5, align 4, !tbaa !9
  %62 = load i32, ptr %4, align 4, !tbaa !9
  %63 = icmp eq i32 %62, %61
  br i1 %63, label %.backedge.us.us.backedge, label %64

64:                                               ; preds = %.backedge.us.us
  %65 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %62, i32 noundef %61) #7
  %.not124.us.us = icmp eq i32 %65, 0
  br i1 %.not124.us.us, label %.split.us.us, label %.backedge.us.us.backedge

.backedge.us.us.backedge:                         ; preds = %64, %.backedge.us.us
  br label %.backedge.us.us

.split.us.us:                                     ; preds = %64
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = call double @changeAltStars(ptr noundef nonnull %39, i32 noundef %66, i32 noundef %67, double noundef 2.000000e+00) #7
  %69 = load i32, ptr %4, align 4, !tbaa !9
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = call double @changeAltKTriangles(ptr noundef nonnull %39, i32 noundef %69, i32 noundef %70, double noundef 2.000000e+00) #7
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = call double @changeAltTwoPaths(ptr noundef nonnull %39, i32 noundef %72, i32 noundef %73, double noundef 2.000000e+00) #7
  %75 = load i32, ptr %4, align 4, !tbaa !9
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = call double @changeThreePaths(ptr noundef nonnull %39, i32 noundef %75, i32 noundef %76, double noundef 2.000000e+00) #7
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = call double @changeFourCycles(ptr noundef nonnull %39, i32 noundef %78, i32 noundef %79, double noundef 2.000000e+00) #7
  %81 = load i32, ptr %4, align 4, !tbaa !9
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = call double @changeTwoStars(ptr noundef nonnull %39, i32 noundef %81, i32 noundef %82, double noundef 2.000000e+00) #7
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %66, i32 noundef %67, double noundef %68, double noundef %71, double noundef %74, double noundef %77, double noundef %80, double noundef %83)
  %85 = add nuw nsw i32 %.086.ph.us, 1
  %exitcond = icmp eq i32 %85, 1000
  br i1 %exitcond, label %.loopexit149, label %.outer150.us

.lr.ph:                                           ; preds = %.outer150.preheader, %.lr.ph.backedge
  %86 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.0)
  %.not120 = icmp eq ptr %86, null
  br i1 %.not120, label %.outer150.split._crit_edge, label %87

87:                                               ; preds = %.lr.ph
  %88 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not121 = icmp eq i32 %88, 2
  br i1 %.not121, label %92, label %89

89:                                               ; preds = %87
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.8) #8
  call void @exit(i32 noundef 1) #9
  unreachable

92:                                               ; preds = %87
  %93 = load i32, ptr %4, align 4, !tbaa !9
  %94 = load i32, ptr %39, align 8, !tbaa !15
  %.not122 = icmp ult i32 %93, %94
  br i1 %.not122, label %98, label %95

95:                                               ; preds = %92
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.9, i32 noundef %93) #8
  call void @exit(i32 noundef 1) #9
  unreachable

98:                                               ; preds = %92
  %99 = load i32, ptr %5, align 4, !tbaa !9
  %.not123 = icmp ult i32 %99, %94
  br i1 %.not123, label %103, label %100

100:                                              ; preds = %98
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.10, i32 noundef %99) #8
  call void @exit(i32 noundef 1) #9
  unreachable

103:                                              ; preds = %98
  %104 = icmp eq i32 %93, %99
  br i1 %104, label %.backedge, label %106

.backedge:                                        ; preds = %103, %106
  %105 = call i32 @feof(ptr noundef %.0) #7
  %.not119 = icmp eq i32 %105, 0
  br i1 %.not119, label %.lr.ph.backedge, label %.outer150.split._crit_edge

.lr.ph.backedge:                                  ; preds = %.backedge, %.split
  br label %.lr.ph

106:                                              ; preds = %103
  %107 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %93, i32 noundef %99) #7
  %.not124 = icmp eq i32 %107, 0
  br i1 %.not124, label %.split, label %.backedge

.split:                                           ; preds = %106
  %108 = load i32, ptr %4, align 4, !tbaa !9
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = call double @changeAltStars(ptr noundef nonnull %39, i32 noundef %108, i32 noundef %109, double noundef 2.000000e+00) #7
  %111 = load i32, ptr %4, align 4, !tbaa !9
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = call double @changeAltKTriangles(ptr noundef nonnull %39, i32 noundef %111, i32 noundef %112, double noundef 2.000000e+00) #7
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = call double @changeAltTwoPaths(ptr noundef nonnull %39, i32 noundef %114, i32 noundef %115, double noundef 2.000000e+00) #7
  %117 = load i32, ptr %4, align 4, !tbaa !9
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = call double @changeThreePaths(ptr noundef nonnull %39, i32 noundef %117, i32 noundef %118, double noundef 2.000000e+00) #7
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = load i32, ptr %5, align 4, !tbaa !9
  %122 = call double @changeFourCycles(ptr noundef nonnull %39, i32 noundef %120, i32 noundef %121, double noundef 2.000000e+00) #7
  %123 = load i32, ptr %4, align 4, !tbaa !9
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = call double @changeTwoStars(ptr noundef nonnull %39, i32 noundef %123, i32 noundef %124, double noundef 2.000000e+00) #7
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %108, i32 noundef %109, double noundef %110, double noundef %113, double noundef %116, double noundef %119, double noundef %122, double noundef %125)
  %127 = call i32 @feof(ptr noundef %.0) #7
  %.not119159 = icmp eq i32 %127, 0
  br i1 %.not119159, label %.lr.ph.backedge, label %.outer150.split._crit_edge

.outer150.split._crit_edge:                       ; preds = %.split, %.backedge, %.lr.ph, %.outer150.preheader
  %128 = call i32 @fclose(ptr noundef %.0)
  %129 = call noalias ptr @fopen(ptr noundef %.084, ptr noundef nonnull @.str.1)
  %.not125 = icmp eq ptr %129, null
  br i1 %.not125, label %130, label %.loopexit149

130:                                              ; preds = %.outer150.split._crit_edge
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = tail call ptr @__errno_location() #10
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = call ptr @strerror(i32 noundef %133) #7
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.2, ptr noundef %.084, ptr noundef %134) #8
  call void @exit(i32 noundef 1) #9
  unreachable

.loopexit149:                                     ; preds = %.split.us.us, %.outer150.split._crit_edge
  %.1 = phi ptr [ %129, %.outer150.split._crit_edge ], [ %.0, %.split.us.us ]
  %136 = call i32 @gettimeofday(ptr noundef nonnull %7, ptr noundef null) #7
  %137 = call i32 @timeval_subtract(ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef nonnull %6) #7
  %138 = load i64, ptr %8, align 8, !tbaa !11
  %139 = mul nsw i64 %138, 1000
  %140 = load i64, ptr %44, align 8, !tbaa !14
  %141 = sdiv i64 %140, 1000
  %142 = add nsw i64 %141, %139
  %143 = trunc i64 %142 to i32
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = sitofp i32 %143 to double
  %146 = fdiv double %145, 1.000000e+03
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.12, double noundef %146) #8
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %149 = getelementptr inbounds i8, ptr %39, i64 56
  br i1 %.not118.not, label %.outer148.preheader, label %.outer148.us

.outer148.preheader:                              ; preds = %.loopexit149
  %150 = call i32 @feof(ptr noundef %.1) #7
  %.not127164233 = icmp eq i32 %150, 0
  br i1 %.not127164233, label %.lr.ph165, label %.outer148.split._crit_edge

.outer148.us:                                     ; preds = %.loopexit149, %.split163.us.us
  %.187.ph.us = phi i32 [ %172, %.split163.us.us ], [ 0, %.loopexit149 ]
  br label %.critedge.us.us

.critedge.us.us:                                  ; preds = %.critedge.us.us.backedge, %.outer148.us
  %151 = call i32 @rand() #7
  %152 = load i32, ptr %39, align 8, !tbaa !15
  %153 = urem i32 %151, %152
  store i32 %153, ptr %4, align 4, !tbaa !9
  %154 = call i32 @rand() #7
  %155 = load i32, ptr %39, align 8, !tbaa !15
  %156 = urem i32 %154, %155
  store i32 %156, ptr %5, align 4, !tbaa !9
  %157 = load i32, ptr %4, align 4, !tbaa !9
  %158 = icmp eq i32 %157, %156
  br i1 %158, label %.critedge.us.us.backedge, label %159

159:                                              ; preds = %.critedge.us.us
  %160 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %157, i32 noundef %156) #7
  %.not126.us.us = icmp eq i32 %160, 0
  br i1 %.not126.us.us, label %.loopexit146.us.us, label %.critedge.us.us.backedge

161:                                              ; preds = %.loopexit146.us.us
  %162 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %163, i32 noundef %164) #7
  %.not132.us.us = icmp eq i32 %162, 0
  br i1 %.not132.us.us, label %.split163.us.us, label %.critedge.us.us.backedge

.loopexit146.us.us:                               ; preds = %159
  %163 = load i32, ptr %4, align 4, !tbaa !9
  %164 = load i32, ptr %5, align 4, !tbaa !9
  %165 = icmp eq i32 %163, %164
  br i1 %165, label %.critedge.us.us.backedge, label %161

.critedge.us.us.backedge:                         ; preds = %.loopexit146.us.us, %161, %159, %.critedge.us.us
  br label %.critedge.us.us, !llvm.loop !17

.split163.us.us:                                  ; preds = %161
  %166 = load i32, ptr %4, align 4, !tbaa !9
  %167 = load i32, ptr %5, align 4, !tbaa !9
  call void @insertEdge(ptr noundef nonnull %39, i32 noundef %166, i32 noundef %167) #7
  %168 = load i32, ptr %4, align 4, !tbaa !9
  %169 = load i32, ptr %5, align 4, !tbaa !9
  %170 = load i32, ptr %149, align 8, !tbaa !19
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %168, i32 noundef %169, i32 noundef %170)
  %172 = add nuw nsw i32 %.187.ph.us, 1
  %exitcond193 = icmp eq i32 %172, 1000
  br i1 %exitcond193, label %.loopexit147, label %.outer148.us

.lr.ph165:                                        ; preds = %.outer148.preheader, %.lr.ph165.backedge
  %173 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.1)
  %.not128 = icmp eq ptr %173, null
  br i1 %.not128, label %.outer148.split._crit_edge, label %174

174:                                              ; preds = %.lr.ph165
  %175 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not129 = icmp eq i32 %175, 2
  br i1 %.not129, label %179, label %176

176:                                              ; preds = %174
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef nonnull @.str.8) #8
  call void @exit(i32 noundef 1) #9
  unreachable

179:                                              ; preds = %174
  %180 = load i32, ptr %4, align 4, !tbaa !9
  %181 = load i32, ptr %39, align 8, !tbaa !15
  %.not130 = icmp ult i32 %180, %181
  br i1 %.not130, label %185, label %182

182:                                              ; preds = %179
  %183 = load ptr, ptr @stderr, align 8, !tbaa !5
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef nonnull @.str.9, i32 noundef %180) #8
  call void @exit(i32 noundef 1) #9
  unreachable

185:                                              ; preds = %179
  %186 = load i32, ptr %5, align 4, !tbaa !9
  %.not131 = icmp ult i32 %186, %181
  br i1 %.not131, label %190, label %187

187:                                              ; preds = %185
  %188 = load ptr, ptr @stderr, align 8, !tbaa !5
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef nonnull @.str.10, i32 noundef %186) #8
  call void @exit(i32 noundef 1) #9
  unreachable

190:                                              ; preds = %185
  %191 = icmp eq i32 %180, %186
  br i1 %191, label %194, label %192

192:                                              ; preds = %190
  %193 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %180, i32 noundef %186) #7
  %.not132 = icmp eq i32 %193, 0
  br i1 %.not132, label %.split163, label %194

194:                                              ; preds = %192, %190
  %195 = call i32 @feof(ptr noundef %.1) #7
  %.not127 = icmp eq i32 %195, 0
  br i1 %.not127, label %.lr.ph165.backedge, label %.outer148.split._crit_edge

.lr.ph165.backedge:                               ; preds = %194, %.split163
  br label %.lr.ph165

.split163:                                        ; preds = %192
  %196 = load i32, ptr %4, align 4, !tbaa !9
  %197 = load i32, ptr %5, align 4, !tbaa !9
  call void @insertEdge(ptr noundef nonnull %39, i32 noundef %196, i32 noundef %197) #7
  %198 = load i32, ptr %4, align 4, !tbaa !9
  %199 = load i32, ptr %5, align 4, !tbaa !9
  %200 = load i32, ptr %149, align 8, !tbaa !19
  %201 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %198, i32 noundef %199, i32 noundef %200)
  %202 = call i32 @feof(ptr noundef %.1) #7
  %.not127164 = icmp eq i32 %202, 0
  br i1 %.not127164, label %.lr.ph165.backedge, label %.outer148.split._crit_edge

.outer148.split._crit_edge:                       ; preds = %.split163, %194, %.lr.ph165, %.outer148.preheader
  %203 = call i32 @fclose(ptr noundef %.1)
  %204 = call noalias ptr @fopen(ptr noundef %.084, ptr noundef nonnull @.str.1)
  %.not133 = icmp eq ptr %204, null
  br i1 %.not133, label %205, label %.loopexit147

205:                                              ; preds = %.outer148.split._crit_edge
  %206 = load ptr, ptr @stderr, align 8, !tbaa !5
  %207 = tail call ptr @__errno_location() #10
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = call ptr @strerror(i32 noundef %208) #7
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef nonnull @.str.2, ptr noundef %.084, ptr noundef %209) #8
  call void @exit(i32 noundef 1) #9
  unreachable

.loopexit147:                                     ; preds = %.split163.us.us, %.outer148.split._crit_edge
  %.2 = phi ptr [ %204, %.outer148.split._crit_edge ], [ %.1, %.split163.us.us ]
  %211 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br i1 %.not118.not, label %.outer.preheader, label %.outer.us

.outer.preheader:                                 ; preds = %.loopexit147
  %212 = call i32 @feof(ptr noundef %.2) #7
  %.not135171234 = icmp eq i32 %212, 0
  br i1 %.not135171234, label %.lr.ph172, label %.outer.split._crit_edge

.outer.us:                                        ; preds = %.loopexit147, %.split170.us.us
  %.288.ph.us = phi i32 [ %234, %.split170.us.us ], [ 0, %.loopexit147 ]
  br label %.critedge7.us.us

.critedge7.us.us:                                 ; preds = %.critedge7.us.us.backedge, %.outer.us
  %213 = call i32 @rand() #7
  %214 = load i32, ptr %39, align 8, !tbaa !15
  %215 = urem i32 %213, %214
  store i32 %215, ptr %4, align 4, !tbaa !9
  %216 = call i32 @rand() #7
  %217 = load i32, ptr %39, align 8, !tbaa !15
  %218 = urem i32 %216, %217
  store i32 %218, ptr %5, align 4, !tbaa !9
  %219 = load i32, ptr %4, align 4, !tbaa !9
  %220 = icmp eq i32 %219, %218
  br i1 %220, label %.critedge7.us.us.backedge, label %221

221:                                              ; preds = %.critedge7.us.us
  %222 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %219, i32 noundef %218) #7
  %.not134.us.us = icmp eq i32 %222, 0
  br i1 %.not134.us.us, label %.critedge7.us.us.backedge, label %.loopexit.us.us

223:                                              ; preds = %.loopexit.us.us
  %224 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %225, i32 noundef %226) #7
  %.not140.us.us = icmp eq i32 %224, 0
  br i1 %.not140.us.us, label %.critedge7.us.us.backedge, label %.split170.us.us

.loopexit.us.us:                                  ; preds = %221
  %225 = load i32, ptr %4, align 4, !tbaa !9
  %226 = load i32, ptr %5, align 4, !tbaa !9
  %227 = icmp eq i32 %225, %226
  br i1 %227, label %.critedge7.us.us.backedge, label %223

.critedge7.us.us.backedge:                        ; preds = %.loopexit.us.us, %223, %221, %.critedge7.us.us
  br label %.critedge7.us.us, !llvm.loop !20

.split170.us.us:                                  ; preds = %223
  %228 = load i32, ptr %4, align 4, !tbaa !9
  %229 = load i32, ptr %5, align 4, !tbaa !9
  call void @removeEdge(ptr noundef nonnull %39, i32 noundef %228, i32 noundef %229) #7
  %230 = load i32, ptr %4, align 4, !tbaa !9
  %231 = load i32, ptr %5, align 4, !tbaa !9
  %232 = load i32, ptr %149, align 8, !tbaa !19
  %233 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %230, i32 noundef %231, i32 noundef %232)
  %234 = add nuw nsw i32 %.288.ph.us, 1
  %exitcond194 = icmp eq i32 %234, 1000
  br i1 %exitcond194, label %.loopexit145, label %.outer.us

.lr.ph172:                                        ; preds = %.outer.preheader, %.lr.ph172.backedge
  %235 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.2)
  %.not136 = icmp eq ptr %235, null
  br i1 %.not136, label %.outer.split._crit_edge, label %236

236:                                              ; preds = %.lr.ph172
  %237 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not137 = icmp eq i32 %237, 2
  br i1 %.not137, label %241, label %238

238:                                              ; preds = %236
  %239 = load ptr, ptr @stderr, align 8, !tbaa !5
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %239, ptr noundef nonnull @.str.8) #8
  call void @exit(i32 noundef 1) #9
  unreachable

241:                                              ; preds = %236
  %242 = load i32, ptr %4, align 4, !tbaa !9
  %243 = load i32, ptr %39, align 8, !tbaa !15
  %.not138 = icmp ult i32 %242, %243
  br i1 %.not138, label %247, label %244

244:                                              ; preds = %241
  %245 = load ptr, ptr @stderr, align 8, !tbaa !5
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef nonnull @.str.9, i32 noundef %242) #8
  call void @exit(i32 noundef 1) #9
  unreachable

247:                                              ; preds = %241
  %248 = load i32, ptr %5, align 4, !tbaa !9
  %.not139 = icmp ult i32 %248, %243
  br i1 %.not139, label %252, label %249

249:                                              ; preds = %247
  %250 = load ptr, ptr @stderr, align 8, !tbaa !5
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef nonnull @.str.10, i32 noundef %248) #8
  call void @exit(i32 noundef 1) #9
  unreachable

252:                                              ; preds = %247
  %253 = icmp eq i32 %242, %248
  br i1 %253, label %256, label %254

254:                                              ; preds = %252
  %255 = call i32 @isEdge(ptr noundef nonnull %39, i32 noundef %242, i32 noundef %248) #7
  %.not140 = icmp eq i32 %255, 0
  br i1 %.not140, label %256, label %.split170

256:                                              ; preds = %254, %252
  %257 = call i32 @feof(ptr noundef %.2) #7
  %.not135 = icmp eq i32 %257, 0
  br i1 %.not135, label %.lr.ph172.backedge, label %.outer.split._crit_edge

.lr.ph172.backedge:                               ; preds = %256, %.split170
  br label %.lr.ph172

.split170:                                        ; preds = %254
  %258 = load i32, ptr %4, align 4, !tbaa !9
  %259 = load i32, ptr %5, align 4, !tbaa !9
  call void @removeEdge(ptr noundef nonnull %39, i32 noundef %258, i32 noundef %259) #7
  %260 = load i32, ptr %4, align 4, !tbaa !9
  %261 = load i32, ptr %5, align 4, !tbaa !9
  %262 = load i32, ptr %149, align 8, !tbaa !19
  %263 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %260, i32 noundef %261, i32 noundef %262)
  %264 = call i32 @feof(ptr noundef %.2) #7
  %.not135171 = icmp eq i32 %264, 0
  br i1 %.not135171, label %.lr.ph172.backedge, label %.outer.split._crit_edge

.outer.split._crit_edge:                          ; preds = %.split170, %256, %.lr.ph172, %.outer.preheader
  %265 = call i32 @fclose(ptr noundef %.2)
  br label %.loopexit145

.loopexit145:                                     ; preds = %.split170.us.us, %.outer.split._crit_edge
  call void @free_graph(ptr noundef %39) #7
  call void @exit(i32 noundef 0) #9
  unreachable

266:                                              ; preds = %31, %29
  %267 = load ptr, ptr @stderr, align 8, !tbaa !5
  %268 = tail call ptr @__errno_location() #10
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = tail call ptr @strerror(i32 noundef %269) #7
  %271 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef nonnull @.str.3, ptr noundef %18, ptr noundef %270) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #7
  ret i32 -1
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

declare i32 @get_num_vertices_from_arclist_file(ptr noundef) local_unnamed_addr #6

declare ptr @allocate_graph(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare ptr @load_graph_from_arclist_file(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @timeval_subtract(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

declare i32 @isEdge(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare double @changeAltStars(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare double @changeAltKTriangles(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare double @changeAltTwoPaths(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare double @changeThreePaths(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare double @changeTwoStars(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

declare void @insertEdge(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @removeEdge(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @free_graph(ptr noundef) local_unnamed_addr #6

; 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { "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 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"timeval", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !10, i64 0}
!16 = !{!"graph_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !6, i64 224, !10, i64 232, !10, i64 236, !6, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !10, i64 56}
!20 = distinct !{!20, !18}


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