; LLVM IR from stivalaa/EstimNetDirected :: Test/TestChangeStatsBipartite (testChangeStatsBipartiteMain)

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

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

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

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

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

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

57:                                               ; preds = %43
  br label %59

58:                                               ; preds = %37
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %59

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

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

70:                                               ; preds = %59
  %71 = call i32 @gettimeofday(ptr noundef %19, ptr noundef null) #7
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = load ptr, ptr %10, align 8, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.4, ptr noundef %73) #7
  %75 = load ptr, ptr %11, align 8, !tbaa !9
  call void @get_num_vertices_from_bipartite_pajek_file(ptr noundef %75, ptr noundef %12, ptr noundef %13)
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = call ptr @allocate_graph(i32 noundef %76, i32 noundef 0, i32 noundef 1, i32 noundef %77)
  store ptr %78, ptr %14, align 8, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !9
  %80 = call noalias ptr @fopen(ptr noundef %79, ptr noundef @.str.1)
  store ptr %80, ptr %11, align 8, !tbaa !9
  %81 = icmp ne ptr %80, null
  br i1 %81, label %89, label %82

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

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

108:                                              ; preds = %143, %89
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = load ptr, ptr %14, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.graph_s, ptr %110, i32 0, i32 13
  %112 = load i32, ptr %111, align 8, !tbaa !17
  %113 = icmp ult i32 %109, %112
  br i1 %113, label %114, label %146

114:                                              ; preds = %108
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %139, %114
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = load ptr, ptr %14, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.graph_s, ptr %117, i32 0, i32 14
  %119 = load i32, ptr %118, align 4, !tbaa !19
  %120 = icmp ult i32 %116, %119
  br i1 %120, label %121, label %142

121:                                              ; preds = %115
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = icmp ne i32 %122, %123
  br i1 %124, label %125, label %138

125:                                              ; preds = %121
  %126 = load ptr, ptr %14, align 8, !tbaa !9
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = call i32 @isEdge(ptr noundef %126, i32 noundef %127, i32 noundef %128)
  %130 = load ptr, ptr %14, align 8, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = call i32 @isEdge(ptr noundef %130, i32 noundef %131, i32 noundef %132)
  %134 = icmp eq i32 %129, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %125
  br label %137

136:                                              ; preds = %125
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 202, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137, %121
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = add i32 %140, 1
  store i32 %141, ptr %9, align 4, !tbaa !5
  br label %115, !llvm.loop !20

142:                                              ; preds = %115
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %8, align 4, !tbaa !5
  br label %108, !llvm.loop !22

146:                                              ; preds = %108
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %148 = call i32 @gettimeofday(ptr noundef %19, ptr noundef null) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %294, %218, %146
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %197

153:                                              ; preds = %150
  %154 = load ptr, ptr %18, align 8, !tbaa !9
  %155 = call i32 @feof(ptr noundef %154) #7
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %153
  br label %295

158:                                              ; preds = %153
  %159 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %160 = load ptr, ptr %18, align 8, !tbaa !9
  %161 = call ptr @fgets(ptr noundef %159, i32 noundef 1023, ptr noundef %160)
  %162 = icmp ne ptr %161, null
  br i1 %162, label %164, label %163

163:                                              ; preds = %158
  br label %295

164:                                              ; preds = %158
  %165 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %166 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %165, ptr noundef @.str.9, ptr noundef %8, ptr noundef %9) #7
  %167 = icmp ne i32 %166, 2
  br i1 %167, label %168, label %171

168:                                              ; preds = %164
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #8
  unreachable

171:                                              ; preds = %164
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = load ptr, ptr %14, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.graph_s, ptr %173, i32 0, i32 13
  %175 = load i32, ptr %174, align 8, !tbaa !17
  %176 = icmp uge i32 %172, %175
  br i1 %176, label %177, label %181

177:                                              ; preds = %171
  %178 = load ptr, ptr @stderr, align 8, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.11, i32 noundef %179) #7
  call void @exit(i32 noundef 1) #8
  unreachable

181:                                              ; preds = %171
  %182 = load i32, ptr %9, align 4, !tbaa !5
  %183 = load ptr, ptr %14, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct.graph_s, ptr %183, i32 0, i32 14
  %185 = load i32, ptr %184, align 4, !tbaa !19
  %186 = icmp uge i32 %182, %185
  br i1 %186, label %187, label %191

187:                                              ; preds = %181
  %188 = load ptr, ptr @stderr, align 8, !tbaa !9
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.12, i32 noundef %189) #7
  call void @exit(i32 noundef 1) #8
  unreachable

191:                                              ; preds = %181
  %192 = load ptr, ptr %14, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.graph_s, ptr %192, i32 0, i32 13
  %194 = load i32, ptr %193, align 8, !tbaa !17
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = add i32 %195, %194
  store i32 %196, ptr %9, align 4, !tbaa !5
  br label %212

197:                                              ; preds = %150
  %198 = call i32 @rand() #7
  %199 = load ptr, ptr %14, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.graph_s, ptr %199, i32 0, i32 13
  %201 = load i32, ptr %200, align 8, !tbaa !17
  %202 = urem i32 %198, %201
  store i32 %202, ptr %8, align 4, !tbaa !5
  %203 = load ptr, ptr %14, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.graph_s, ptr %203, i32 0, i32 13
  %205 = load i32, ptr %204, align 8, !tbaa !17
  %206 = call i32 @rand() #7
  %207 = load ptr, ptr %14, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.graph_s, ptr %207, i32 0, i32 14
  %209 = load i32, ptr %208, align 4, !tbaa !19
  %210 = urem i32 %206, %209
  %211 = add i32 %205, %210
  store i32 %211, ptr %9, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %197, %191
  %213 = load ptr, ptr %14, align 8, !tbaa !9
  %214 = load i32, ptr %8, align 4, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !5
  %216 = call i32 @isEdge(ptr noundef %213, i32 noundef %214, i32 noundef %215)
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %212
  br label %149

219:                                              ; preds = %212
  %220 = load i32, ptr %8, align 4, !tbaa !5
  %221 = load i32, ptr %9, align 4, !tbaa !5
  %222 = load ptr, ptr %14, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct.graph_s, ptr %222, i32 0, i32 13
  %224 = load i32, ptr %223, align 8, !tbaa !17
  %225 = sub i32 %221, %224
  %226 = load ptr, ptr %14, align 8, !tbaa !9
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = load i32, ptr %9, align 4, !tbaa !5
  %229 = call double @changeFourCycles(ptr noundef %226, i32 noundef %227, i32 noundef %228, double noundef 2.000000e+00)
  %230 = load ptr, ptr %14, align 8, !tbaa !9
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = call double @changeBipartiteAltStarsA(ptr noundef %230, i32 noundef %231, i32 noundef %232, double noundef 2.000000e+00)
  %234 = load ptr, ptr %14, align 8, !tbaa !9
  %235 = load i32, ptr %8, align 4, !tbaa !5
  %236 = load i32, ptr %9, align 4, !tbaa !5
  %237 = call double @changeBipartiteAltStarsB(ptr noundef %234, i32 noundef %235, i32 noundef %236, double noundef 2.000000e+00)
  %238 = load ptr, ptr %14, align 8, !tbaa !9
  %239 = load i32, ptr %8, align 4, !tbaa !5
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = call double @changeBipartiteAltKCyclesB(ptr noundef %238, i32 noundef %239, i32 noundef %240, double noundef 2.000000e+00)
  %242 = load ptr, ptr %14, align 8, !tbaa !9
  %243 = load i32, ptr %8, align 4, !tbaa !5
  %244 = load i32, ptr %9, align 4, !tbaa !5
  %245 = call double @changeBipartiteAltKCyclesA(ptr noundef %242, i32 noundef %243, i32 noundef %244, double noundef 2.000000e+00)
  %246 = load ptr, ptr %14, align 8, !tbaa !9
  %247 = load i32, ptr %8, align 4, !tbaa !5
  %248 = load i32, ptr %9, align 4, !tbaa !5
  %249 = call double @changeBipartiteTwoStarsB(ptr noundef %246, i32 noundef %247, i32 noundef %248, double noundef 2.000000e+00)
  %250 = load ptr, ptr %14, align 8, !tbaa !9
  %251 = load i32, ptr %8, align 4, !tbaa !5
  %252 = load i32, ptr %9, align 4, !tbaa !5
  %253 = call double @changeBipartiteTwoStarsA(ptr noundef %250, i32 noundef %251, i32 noundef %252, double noundef 2.000000e+00)
  %254 = load ptr, ptr %14, align 8, !tbaa !9
  %255 = load i32, ptr %8, align 4, !tbaa !5
  %256 = load i32, ptr %9, align 4, !tbaa !5
  %257 = call double @changeBipartiteThreeStarsB(ptr noundef %254, i32 noundef %255, i32 noundef %256, double noundef 2.000000e+00)
  %258 = load ptr, ptr %14, align 8, !tbaa !9
  %259 = load i32, ptr %8, align 4, !tbaa !5
  %260 = load i32, ptr %9, align 4, !tbaa !5
  %261 = call double @changeBipartiteThreeStarsA(ptr noundef %258, i32 noundef %259, i32 noundef %260, double noundef 2.000000e+00)
  %262 = load ptr, ptr %14, align 8, !tbaa !9
  %263 = load i32, ptr %8, align 4, !tbaa !5
  %264 = load i32, ptr %9, align 4, !tbaa !5
  %265 = call double @changeThreePaths(ptr noundef %262, i32 noundef %263, i32 noundef %264, double noundef 2.000000e+00)
  %266 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %220, i32 noundef %225, double noundef %229, double noundef %233, double noundef %237, double noundef %241, double noundef %245, double noundef %249, double noundef %253, double noundef %257, double noundef %261, double noundef %265)
  %267 = load ptr, ptr %14, align 8, !tbaa !9
  %268 = load i32, ptr %8, align 4, !tbaa !5
  %269 = load i32, ptr %9, align 4, !tbaa !5
  %270 = call double @changeBipartitePowerFourCyclesA(ptr noundef %267, i32 noundef %268, i32 noundef %269, double noundef 2.000000e+00)
  %271 = load ptr, ptr %14, align 8, !tbaa !9
  %272 = load i32, ptr %8, align 4, !tbaa !5
  %273 = load i32, ptr %9, align 4, !tbaa !5
  %274 = call double @changeBipartitePowerFourCyclesB(ptr noundef %271, i32 noundef %272, i32 noundef %273, double noundef 2.000000e+00)
  %275 = fadd double %270, %274
  %276 = load ptr, ptr %14, align 8, !tbaa !9
  %277 = load i32, ptr %8, align 4, !tbaa !5
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = call double @changePowerFourCycles(ptr noundef %276, i32 noundef %277, i32 noundef %278, double noundef 2.000000e+00)
  %280 = fsub double %275, %279
  %281 = call double @llvm.fabs.f64(double %280)
  %282 = fcmp ole double %281, 0x3EB0C6F7A0B5ED8D
  br i1 %282, label %283, label %284

283:                                              ; preds = %219
  br label %285

284:                                              ; preds = %219
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.7, i32 noundef 263, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

285:                                              ; preds = %283
  %286 = load i32, ptr %15, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %15, align 4, !tbaa !5
  %288 = load i32, ptr %16, align 4, !tbaa !5
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %294, label %290

290:                                              ; preds = %285
  %291 = load i32, ptr %15, align 4, !tbaa !5
  %292 = icmp sge i32 %291, 1000
  br i1 %292, label %293, label %294

293:                                              ; preds = %290
  br label %295

294:                                              ; preds = %290, %285
  br label %149

295:                                              ; preds = %293, %163, %157
  %296 = load i32, ptr %16, align 4, !tbaa !5
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %312

298:                                              ; preds = %295
  %299 = load ptr, ptr %18, align 8, !tbaa !9
  %300 = call i32 @fclose(ptr noundef %299)
  %301 = load ptr, ptr %17, align 8, !tbaa !9
  %302 = call noalias ptr @fopen(ptr noundef %301, ptr noundef @.str.1)
  store ptr %302, ptr %18, align 8, !tbaa !9
  %303 = icmp ne ptr %302, null
  br i1 %303, label %311, label %304

304:                                              ; preds = %298
  %305 = load ptr, ptr @stderr, align 8, !tbaa !9
  %306 = load ptr, ptr %17, align 8, !tbaa !9
  %307 = call ptr @__errno_location() #9
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = call ptr @strerror(i32 noundef %308) #7
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.2, ptr noundef %306, ptr noundef %309) #7
  call void @exit(i32 noundef 1) #8
  unreachable

311:                                              ; preds = %298
  br label %312

312:                                              ; preds = %311, %295
  %313 = call i32 @gettimeofday(ptr noundef %20, ptr noundef null) #7
  %314 = call i32 @timeval_subtract(ptr noundef %21, ptr noundef %20, ptr noundef %19)
  %315 = getelementptr inbounds %struct.timeval, ptr %21, i32 0, i32 0
  %316 = load i64, ptr %315, align 8, !tbaa !13
  %317 = mul nsw i64 1000, %316
  %318 = getelementptr inbounds %struct.timeval, ptr %21, i32 0, i32 1
  %319 = load i64, ptr %318, align 8, !tbaa !16
  %320 = sdiv i64 %319, 1000
  %321 = add nsw i64 %317, %320
  %322 = trunc i64 %321 to i32
  store i32 %322, ptr %22, align 4, !tbaa !5
  %323 = load ptr, ptr @stderr, align 8, !tbaa !9
  %324 = load i32, ptr %22, align 4, !tbaa !5
  %325 = sitofp i32 %324 to double
  %326 = fdiv double %325, 1.000000e+03
  %327 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %323, ptr noundef @.str.15, double noundef %326) #7
  %328 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %429, %406, %312
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %16, align 4, !tbaa !5
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %377

333:                                              ; preds = %330
  %334 = load ptr, ptr %18, align 8, !tbaa !9
  %335 = call i32 @feof(ptr noundef %334) #7
  %336 = icmp ne i32 %335, 0
  br i1 %336, label %337, label %338

337:                                              ; preds = %333
  br label %430

338:                                              ; preds = %333
  %339 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %340 = load ptr, ptr %18, align 8, !tbaa !9
  %341 = call ptr @fgets(ptr noundef %339, i32 noundef 1023, ptr noundef %340)
  %342 = icmp ne ptr %341, null
  br i1 %342, label %344, label %343

343:                                              ; preds = %338
  br label %430

344:                                              ; preds = %338
  %345 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %346 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %345, ptr noundef @.str.9, ptr noundef %8, ptr noundef %9) #7
  %347 = icmp ne i32 %346, 2
  br i1 %347, label %348, label %351

348:                                              ; preds = %344
  %349 = load ptr, ptr @stderr, align 8, !tbaa !9
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %349, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #8
  unreachable

351:                                              ; preds = %344
  %352 = load i32, ptr %8, align 4, !tbaa !5
  %353 = load ptr, ptr %14, align 8, !tbaa !9
  %354 = getelementptr inbounds %struct.graph_s, ptr %353, i32 0, i32 0
  %355 = load i32, ptr %354, align 8, !tbaa !23
  %356 = icmp uge i32 %352, %355
  br i1 %356, label %357, label %361

357:                                              ; preds = %351
  %358 = load ptr, ptr @stderr, align 8, !tbaa !9
  %359 = load i32, ptr %8, align 4, !tbaa !5
  %360 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %358, ptr noundef @.str.11, i32 noundef %359) #7
  call void @exit(i32 noundef 1) #8
  unreachable

361:                                              ; preds = %351
  %362 = load i32, ptr %9, align 4, !tbaa !5
  %363 = load ptr, ptr %14, align 8, !tbaa !9
  %364 = getelementptr inbounds %struct.graph_s, ptr %363, i32 0, i32 0
  %365 = load i32, ptr %364, align 8, !tbaa !23
  %366 = icmp uge i32 %362, %365
  br i1 %366, label %367, label %371

367:                                              ; preds = %361
  %368 = load ptr, ptr @stderr, align 8, !tbaa !9
  %369 = load i32, ptr %9, align 4, !tbaa !5
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %368, ptr noundef @.str.12, i32 noundef %369) #7
  call void @exit(i32 noundef 1) #8
  unreachable

371:                                              ; preds = %361
  %372 = load ptr, ptr %14, align 8, !tbaa !9
  %373 = getelementptr inbounds %struct.graph_s, ptr %372, i32 0, i32 13
  %374 = load i32, ptr %373, align 8, !tbaa !17
  %375 = load i32, ptr %9, align 4, !tbaa !5
  %376 = add i32 %375, %374
  store i32 %376, ptr %9, align 4, !tbaa !5
  br label %400

377:                                              ; preds = %330
  br label %378

378:                                              ; preds = %393, %377
  %379 = call i32 @rand() #7
  %380 = load ptr, ptr %14, align 8, !tbaa !9
  %381 = getelementptr inbounds %struct.graph_s, ptr %380, i32 0, i32 13
  %382 = load i32, ptr %381, align 8, !tbaa !17
  %383 = urem i32 %379, %382
  store i32 %383, ptr %8, align 4, !tbaa !5
  %384 = load ptr, ptr %14, align 8, !tbaa !9
  %385 = getelementptr inbounds %struct.graph_s, ptr %384, i32 0, i32 13
  %386 = load i32, ptr %385, align 8, !tbaa !17
  %387 = call i32 @rand() #7
  %388 = load ptr, ptr %14, align 8, !tbaa !9
  %389 = getelementptr inbounds %struct.graph_s, ptr %388, i32 0, i32 14
  %390 = load i32, ptr %389, align 4, !tbaa !19
  %391 = urem i32 %387, %390
  %392 = add i32 %386, %391
  store i32 %392, ptr %9, align 4, !tbaa !5
  br label %393

393:                                              ; preds = %378
  %394 = load ptr, ptr %14, align 8, !tbaa !9
  %395 = load i32, ptr %8, align 4, !tbaa !5
  %396 = load i32, ptr %9, align 4, !tbaa !5
  %397 = call i32 @isEdge(ptr noundef %394, i32 noundef %395, i32 noundef %396)
  %398 = icmp ne i32 %397, 0
  br i1 %398, label %378, label %399, !llvm.loop !24

399:                                              ; preds = %393
  br label %400

400:                                              ; preds = %399, %371
  %401 = load ptr, ptr %14, align 8, !tbaa !9
  %402 = load i32, ptr %8, align 4, !tbaa !5
  %403 = load i32, ptr %9, align 4, !tbaa !5
  %404 = call i32 @isEdge(ptr noundef %401, i32 noundef %402, i32 noundef %403)
  %405 = icmp ne i32 %404, 0
  br i1 %405, label %406, label %407

406:                                              ; preds = %400
  br label %329

407:                                              ; preds = %400
  %408 = load ptr, ptr %14, align 8, !tbaa !9
  %409 = load i32, ptr %8, align 4, !tbaa !5
  %410 = load i32, ptr %9, align 4, !tbaa !5
  call void @insertEdge(ptr noundef %408, i32 noundef %409, i32 noundef %410)
  %411 = load i32, ptr %8, align 4, !tbaa !5
  %412 = load i32, ptr %9, align 4, !tbaa !5
  %413 = load ptr, ptr %14, align 8, !tbaa !9
  %414 = getelementptr inbounds %struct.graph_s, ptr %413, i32 0, i32 13
  %415 = load i32, ptr %414, align 8, !tbaa !17
  %416 = sub i32 %412, %415
  %417 = load ptr, ptr %14, align 8, !tbaa !9
  %418 = getelementptr inbounds %struct.graph_s, ptr %417, i32 0, i32 9
  %419 = load i32, ptr %418, align 8, !tbaa !25
  %420 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %411, i32 noundef %416, i32 noundef %419)
  %421 = load i32, ptr %15, align 4, !tbaa !5
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr %15, align 4, !tbaa !5
  %423 = load i32, ptr %16, align 4, !tbaa !5
  %424 = icmp ne i32 %423, 0
  br i1 %424, label %429, label %425

425:                                              ; preds = %407
  %426 = load i32, ptr %15, align 4, !tbaa !5
  %427 = icmp sge i32 %426, 1000
  br i1 %427, label %428, label %429

428:                                              ; preds = %425
  br label %430

429:                                              ; preds = %425, %407
  br label %329

430:                                              ; preds = %428, %343, %337
  %431 = load i32, ptr %16, align 4, !tbaa !5
  %432 = icmp ne i32 %431, 0
  br i1 %432, label %433, label %447

433:                                              ; preds = %430
  %434 = load ptr, ptr %18, align 8, !tbaa !9
  %435 = call i32 @fclose(ptr noundef %434)
  %436 = load ptr, ptr %17, align 8, !tbaa !9
  %437 = call noalias ptr @fopen(ptr noundef %436, ptr noundef @.str.1)
  store ptr %437, ptr %18, align 8, !tbaa !9
  %438 = icmp ne ptr %437, null
  br i1 %438, label %446, label %439

439:                                              ; preds = %433
  %440 = load ptr, ptr @stderr, align 8, !tbaa !9
  %441 = load ptr, ptr %17, align 8, !tbaa !9
  %442 = call ptr @__errno_location() #9
  %443 = load i32, ptr %442, align 4, !tbaa !5
  %444 = call ptr @strerror(i32 noundef %443) #7
  %445 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %440, ptr noundef @.str.2, ptr noundef %441, ptr noundef %444) #7
  call void @exit(i32 noundef 1) #8
  unreachable

446:                                              ; preds = %433
  br label %447

447:                                              ; preds = %446, %430
  %448 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %449

449:                                              ; preds = %550, %527, %447
  br label %450

450:                                              ; preds = %449
  %451 = load i32, ptr %16, align 4, !tbaa !5
  %452 = icmp ne i32 %451, 0
  br i1 %452, label %453, label %497

453:                                              ; preds = %450
  %454 = load ptr, ptr %18, align 8, !tbaa !9
  %455 = call i32 @feof(ptr noundef %454) #7
  %456 = icmp ne i32 %455, 0
  br i1 %456, label %457, label %458

457:                                              ; preds = %453
  br label %551

458:                                              ; preds = %453
  %459 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %460 = load ptr, ptr %18, align 8, !tbaa !9
  %461 = call ptr @fgets(ptr noundef %459, i32 noundef 1023, ptr noundef %460)
  %462 = icmp ne ptr %461, null
  br i1 %462, label %464, label %463

463:                                              ; preds = %458
  br label %551

464:                                              ; preds = %458
  %465 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %466 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %465, ptr noundef @.str.9, ptr noundef %8, ptr noundef %9) #7
  %467 = icmp ne i32 %466, 2
  br i1 %467, label %468, label %471

468:                                              ; preds = %464
  %469 = load ptr, ptr @stderr, align 8, !tbaa !9
  %470 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %469, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #8
  unreachable

471:                                              ; preds = %464
  %472 = load i32, ptr %8, align 4, !tbaa !5
  %473 = load ptr, ptr %14, align 8, !tbaa !9
  %474 = getelementptr inbounds %struct.graph_s, ptr %473, i32 0, i32 0
  %475 = load i32, ptr %474, align 8, !tbaa !23
  %476 = icmp uge i32 %472, %475
  br i1 %476, label %477, label %481

477:                                              ; preds = %471
  %478 = load ptr, ptr @stderr, align 8, !tbaa !9
  %479 = load i32, ptr %8, align 4, !tbaa !5
  %480 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %478, ptr noundef @.str.11, i32 noundef %479) #7
  call void @exit(i32 noundef 1) #8
  unreachable

481:                                              ; preds = %471
  %482 = load i32, ptr %9, align 4, !tbaa !5
  %483 = load ptr, ptr %14, align 8, !tbaa !9
  %484 = getelementptr inbounds %struct.graph_s, ptr %483, i32 0, i32 0
  %485 = load i32, ptr %484, align 8, !tbaa !23
  %486 = icmp uge i32 %482, %485
  br i1 %486, label %487, label %491

487:                                              ; preds = %481
  %488 = load ptr, ptr @stderr, align 8, !tbaa !9
  %489 = load i32, ptr %9, align 4, !tbaa !5
  %490 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %488, ptr noundef @.str.12, i32 noundef %489) #7
  call void @exit(i32 noundef 1) #8
  unreachable

491:                                              ; preds = %481
  %492 = load ptr, ptr %14, align 8, !tbaa !9
  %493 = getelementptr inbounds %struct.graph_s, ptr %492, i32 0, i32 13
  %494 = load i32, ptr %493, align 8, !tbaa !17
  %495 = load i32, ptr %9, align 4, !tbaa !5
  %496 = add i32 %495, %494
  store i32 %496, ptr %9, align 4, !tbaa !5
  br label %521

497:                                              ; preds = %450
  br label %498

498:                                              ; preds = %513, %497
  %499 = call i32 @rand() #7
  %500 = load ptr, ptr %14, align 8, !tbaa !9
  %501 = getelementptr inbounds %struct.graph_s, ptr %500, i32 0, i32 13
  %502 = load i32, ptr %501, align 8, !tbaa !17
  %503 = urem i32 %499, %502
  store i32 %503, ptr %8, align 4, !tbaa !5
  %504 = load ptr, ptr %14, align 8, !tbaa !9
  %505 = getelementptr inbounds %struct.graph_s, ptr %504, i32 0, i32 13
  %506 = load i32, ptr %505, align 8, !tbaa !17
  %507 = call i32 @rand() #7
  %508 = load ptr, ptr %14, align 8, !tbaa !9
  %509 = getelementptr inbounds %struct.graph_s, ptr %508, i32 0, i32 14
  %510 = load i32, ptr %509, align 4, !tbaa !19
  %511 = urem i32 %507, %510
  %512 = add i32 %506, %511
  store i32 %512, ptr %9, align 4, !tbaa !5
  br label %513

513:                                              ; preds = %498
  %514 = load ptr, ptr %14, align 8, !tbaa !9
  %515 = load i32, ptr %8, align 4, !tbaa !5
  %516 = load i32, ptr %9, align 4, !tbaa !5
  %517 = call i32 @isEdge(ptr noundef %514, i32 noundef %515, i32 noundef %516)
  %518 = icmp ne i32 %517, 0
  %519 = xor i1 %518, true
  br i1 %519, label %498, label %520, !llvm.loop !26

520:                                              ; preds = %513
  br label %521

521:                                              ; preds = %520, %491
  %522 = load ptr, ptr %14, align 8, !tbaa !9
  %523 = load i32, ptr %8, align 4, !tbaa !5
  %524 = load i32, ptr %9, align 4, !tbaa !5
  %525 = call i32 @isEdge(ptr noundef %522, i32 noundef %523, i32 noundef %524)
  %526 = icmp ne i32 %525, 0
  br i1 %526, label %528, label %527

527:                                              ; preds = %521
  br label %449

528:                                              ; preds = %521
  %529 = load ptr, ptr %14, align 8, !tbaa !9
  %530 = load i32, ptr %8, align 4, !tbaa !5
  %531 = load i32, ptr %9, align 4, !tbaa !5
  call void @removeEdge(ptr noundef %529, i32 noundef %530, i32 noundef %531)
  %532 = load i32, ptr %8, align 4, !tbaa !5
  %533 = load i32, ptr %9, align 4, !tbaa !5
  %534 = load ptr, ptr %14, align 8, !tbaa !9
  %535 = getelementptr inbounds %struct.graph_s, ptr %534, i32 0, i32 13
  %536 = load i32, ptr %535, align 8, !tbaa !17
  %537 = sub i32 %533, %536
  %538 = load ptr, ptr %14, align 8, !tbaa !9
  %539 = getelementptr inbounds %struct.graph_s, ptr %538, i32 0, i32 9
  %540 = load i32, ptr %539, align 8, !tbaa !25
  %541 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %532, i32 noundef %537, i32 noundef %540)
  %542 = load i32, ptr %15, align 4, !tbaa !5
  %543 = add nsw i32 %542, 1
  store i32 %543, ptr %15, align 4, !tbaa !5
  %544 = load i32, ptr %16, align 4, !tbaa !5
  %545 = icmp ne i32 %544, 0
  br i1 %545, label %550, label %546

546:                                              ; preds = %528
  %547 = load i32, ptr %15, align 4, !tbaa !5
  %548 = icmp sge i32 %547, 1000
  br i1 %548, label %549, label %550

549:                                              ; preds = %546
  br label %551

550:                                              ; preds = %546, %528
  br label %449

551:                                              ; preds = %549, %463, %457
  %552 = load i32, ptr %16, align 4, !tbaa !5
  %553 = icmp ne i32 %552, 0
  br i1 %553, label %554, label %557

554:                                              ; preds = %551
  %555 = load ptr, ptr %18, align 8, !tbaa !9
  %556 = call i32 @fclose(ptr noundef %555)
  br label %557

557:                                              ; preds = %554, %551
  %558 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free_graph(ptr noundef %558)
  call void @exit(i32 noundef 0) #8
  unreachable

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

; 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 void @get_num_vertices_from_bipartite_pajek_file(ptr noundef, ptr noundef, 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 @isEdge(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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 double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #6

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 88}
!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 = !{!18, !6, i64 92}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!18, !6, i64 0}
!24 = distinct !{!24, !21}
!25 = !{!18, !6, i64 56}
!26 = distinct !{!26, !21}


; 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 [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [120 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [174 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [163 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.timeval, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %11 = tail call i64 @time(ptr noundef null) #8
  %12 = trunc i64 %11 to i32
  tail call void @srand(i32 noundef %12) #8
  %13 = add i32 %0, -4
  %or.cond = icmp ult i32 %13, -2
  br i1 %or.cond, label %14, label %18

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

18:                                               ; preds = %2
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %.not130 = icmp ne i32 %0, 3
  br i1 %.not130, label %31, label %21

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

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

31:                                               ; preds = %18, %21
  %.0101 = phi ptr [ %23, %21 ], [ null, %18 ]
  %.0 = phi ptr [ %24, %21 ], [ null, %18 ]
  %32 = tail call noalias ptr @fopen(ptr noundef %20, ptr noundef nonnull @.str.1)
  %.not127 = icmp eq ptr %32, null
  br i1 %.not127, label %33, label %39

33:                                               ; preds = %31
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = tail call ptr @__errno_location() #11
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = tail call ptr @strerror(i32 noundef %36) #8
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.3, ptr noundef %20, ptr noundef %37) #9
  br label %318

39:                                               ; preds = %31
  %40 = call i32 @gettimeofday(ptr noundef nonnull %8, ptr noundef null) #8
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.4, ptr noundef %20) #9
  call void @get_num_vertices_from_bipartite_pajek_file(ptr noundef nonnull %32, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = call ptr @allocate_graph(i32 noundef %43, i32 noundef 0, i32 noundef 1, i32 noundef %44) #8
  %46 = call noalias ptr @fopen(ptr noundef %20, ptr noundef nonnull @.str.1)
  %.not128 = icmp eq ptr %46, null
  br i1 %.not128, label %47, label %53

47:                                               ; preds = %39
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = tail call ptr @__errno_location() #11
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = call ptr @strerror(i32 noundef %50) #8
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.3, ptr noundef %20, ptr noundef %51) #9
  br label %318

53:                                               ; preds = %39
  %54 = call ptr @load_graph_from_arclist_file(ptr noundef nonnull %46, ptr noundef %45, 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) #8
  %55 = call i32 @gettimeofday(ptr noundef nonnull %9, ptr noundef null) #8
  %56 = call i32 @timeval_subtract(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %8) #8
  %57 = load i64, ptr %10, align 8, !tbaa !11
  %58 = mul nsw i64 %57, 1000
  %59 = getelementptr inbounds i8, ptr %10, i64 8
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = sdiv i64 %60, 1000
  %62 = add nsw i64 %61, %58
  %63 = trunc i64 %62 to i32
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = sitofp i32 %63 to double
  %66 = fdiv double %65, 1.000000e+03
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.5, double noundef %66) #9
  %68 = getelementptr inbounds i8, ptr %54, i64 88
  store i32 0, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %68, align 8, !tbaa !15
  %.not186 = icmp eq i32 %69, 0
  br i1 %.not186, label %._crit_edge179, label %.preheader167.lr.ph

.preheader167.lr.ph:                              ; preds = %53
  %70 = getelementptr inbounds i8, ptr %54, i64 92
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %.not187 = icmp eq i32 %71, 0
  br i1 %.not187, label %.preheader167.us.preheader, label %.preheader167

.preheader167.us.preheader:                       ; preds = %.preheader167.lr.ph
  %xtraiter = and i32 %69, 7
  %72 = icmp ult i32 %69, 8
  br i1 %72, label %._crit_edge179.split.us.unr-lcssa, label %.preheader167.us.preheader.new

.preheader167.us.preheader.new:                   ; preds = %.preheader167.us.preheader
  %unroll_iter = and i32 %69, -8
  br label %.preheader167.us

.preheader167.us:                                 ; preds = %.preheader167.us, %.preheader167.us.preheader.new
  %73 = phi i32 [ 0, %.preheader167.us.preheader.new ], [ %74, %.preheader167.us ]
  %niter = phi i32 [ 0, %.preheader167.us.preheader.new ], [ %niter.next.7, %.preheader167.us ]
  %74 = add nuw i32 %73, 8
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7.not = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7.not, label %._crit_edge179.split.us.unr-lcssa, label %.preheader167.us, !llvm.loop !18

._crit_edge179.split.us.unr-lcssa:                ; preds = %.preheader167.us, %.preheader167.us.preheader
  %.lcssa260.ph = phi i32 [ poison, %.preheader167.us.preheader ], [ %74, %.preheader167.us ]
  %.unr = phi i32 [ 0, %.preheader167.us.preheader ], [ %74, %.preheader167.us ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge179.split.us, label %.preheader167.us.epil

.preheader167.us.epil:                            ; preds = %._crit_edge179.split.us.unr-lcssa, %.preheader167.us.epil
  %75 = phi i32 [ %76, %.preheader167.us.epil ], [ %.unr, %._crit_edge179.split.us.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader167.us.epil ], [ 0, %._crit_edge179.split.us.unr-lcssa ]
  %76 = add nuw i32 %75, 1
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge179.split.us, label %.preheader167.us.epil, !llvm.loop !20

._crit_edge179.split.us:                          ; preds = %.preheader167.us.epil, %._crit_edge179.split.us.unr-lcssa
  %.lcssa260 = phi i32 [ %.lcssa260.ph, %._crit_edge179.split.us.unr-lcssa ], [ %76, %.preheader167.us.epil ]
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 %.lcssa260, ptr %4, align 4, !tbaa !5
  br label %._crit_edge179

.preheader167:                                    ; preds = %.preheader167.lr.ph, %._crit_edge
  %77 = phi i32 [ %95, %._crit_edge ], [ %69, %.preheader167.lr.ph ]
  %78 = phi i32 [ %99, %._crit_edge ], [ 0, %.preheader167.lr.ph ]
  %79 = phi i32 [ %97, %._crit_edge ], [ %71, %.preheader167.lr.ph ]
  %80 = phi i32 [ %98, %._crit_edge ], [ 1, %.preheader167.lr.ph ]
  store i32 0, ptr %5, align 4, !tbaa !5
  %.not188 = icmp eq i32 %80, 0
  br i1 %.not188, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader167, %90
  %81 = phi i32 [ %91, %90 ], [ %79, %.preheader167 ]
  %storemerge154178 = phi i32 [ %93, %90 ], [ 0, %.preheader167 ]
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %.not155 = icmp eq i32 %82, %storemerge154178
  br i1 %.not155, label %90, label %83

83:                                               ; preds = %.lr.ph
  %84 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %82, i32 noundef %storemerge154178) #8
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %85, i32 noundef %86) #8
  %88 = icmp eq i32 %84, %87
  br i1 %88, label %._crit_edge206, label %89

._crit_edge206:                                   ; preds = %83
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  %.pre207 = load i32, ptr %70, align 4, !tbaa !17
  br label %90

89:                                               ; preds = %83
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 202, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

90:                                               ; preds = %._crit_edge206, %.lr.ph
  %91 = phi i32 [ %.pre207, %._crit_edge206 ], [ %81, %.lr.ph ]
  %92 = phi i32 [ %.pre, %._crit_edge206 ], [ %storemerge154178, %.lr.ph ]
  %93 = add i32 %92, 1
  store i32 %93, ptr %5, align 4, !tbaa !5
  %94 = icmp ult i32 %93, %91
  br i1 %94, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !22

._crit_edge.loopexit:                             ; preds = %90
  %.pre208 = load i32, ptr %4, align 4, !tbaa !5
  %.pre209 = load i32, ptr %68, align 8, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader167
  %95 = phi i32 [ %.pre209, %._crit_edge.loopexit ], [ %77, %.preheader167 ]
  %96 = phi i32 [ %.pre208, %._crit_edge.loopexit ], [ %78, %.preheader167 ]
  %97 = phi i32 [ %91, %._crit_edge.loopexit ], [ %79, %.preheader167 ]
  %98 = phi i32 [ %91, %._crit_edge.loopexit ], [ 0, %.preheader167 ]
  %99 = add i32 %96, 1
  store i32 %99, ptr %4, align 4, !tbaa !5
  %100 = icmp ult i32 %99, %95
  br i1 %100, label %.preheader167, label %._crit_edge179, !llvm.loop !23

._crit_edge179:                                   ; preds = %._crit_edge, %._crit_edge179.split.us, %53
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %102 = call i32 @gettimeofday(ptr noundef nonnull %8, ptr noundef null) #8
  %103 = getelementptr inbounds i8, ptr %54, i64 92
  br label %.outer166

.outer166:                                        ; preds = %183, %._crit_edge179
  %.0103.ph = phi i32 [ %184, %183 ], [ 0, %._crit_edge179 ]
  br i1 %.not130, label %.outer166.split.us, label %.outer166.split

.outer166.split.us:                               ; preds = %.outer166, %.outer166.split.us
  %104 = call i32 @rand() #8
  %105 = load i32, ptr %68, align 8, !tbaa !15
  %106 = urem i32 %104, %105
  store i32 %106, ptr %4, align 4, !tbaa !5
  %107 = call i32 @rand() #8
  %108 = load i32, ptr %103, align 4, !tbaa !17
  %109 = urem i32 %107, %108
  %110 = add i32 %109, %105
  store i32 %110, ptr %5, align 4, !tbaa !5
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %111, i32 noundef %110) #8
  %.not137.us = icmp eq i32 %112, 0
  br i1 %.not137.us, label %.split.us, label %.outer166.split.us

.outer166.split:                                  ; preds = %.outer166, %133
  %113 = call i32 @feof(ptr noundef %.0) #8
  %.not132 = icmp eq i32 %113, 0
  br i1 %.not132, label %114, label %186

114:                                              ; preds = %.outer166.split
  %115 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.0)
  %.not133 = icmp eq ptr %115, null
  br i1 %.not133, label %186, label %116

116:                                              ; preds = %114
  %117 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.9, ptr noundef nonnull %4, ptr noundef nonnull %5) #8
  %.not134 = icmp eq i32 %117, 2
  br i1 %.not134, label %121, label %118

118:                                              ; preds = %116
  %119 = load ptr, ptr @stderr, align 8, !tbaa !9
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.10) #9
  call void @exit(i32 noundef 1) #10
  unreachable

121:                                              ; preds = %116
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = load i32, ptr %68, align 8, !tbaa !15
  %.not135 = icmp ult i32 %122, %123
  br i1 %.not135, label %127, label %124

124:                                              ; preds = %121
  %125 = load ptr, ptr @stderr, align 8, !tbaa !9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef nonnull @.str.11, i32 noundef %122) #9
  call void @exit(i32 noundef 1) #10
  unreachable

127:                                              ; preds = %121
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = load i32, ptr %103, align 4, !tbaa !17
  %.not136 = icmp ult i32 %128, %129
  br i1 %.not136, label %133, label %130

130:                                              ; preds = %127
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.12, i32 noundef %128) #9
  call void @exit(i32 noundef 1) #10
  unreachable

133:                                              ; preds = %127
  %134 = add i32 %128, %123
  store i32 %134, ptr %5, align 4, !tbaa !5
  %135 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %122, i32 noundef %134) #8
  %.not137 = icmp eq i32 %135, 0
  br i1 %.not137, label %.split.us, label %.outer166.split

.split.us:                                        ; preds = %133, %.outer166.split.us
  %136 = load i32, ptr %4, align 4, !tbaa !5
  %137 = load i32, ptr %5, align 4, !tbaa !5
  %138 = load i32, ptr %68, align 8, !tbaa !15
  %139 = sub i32 %137, %138
  %140 = call double @changeFourCycles(ptr noundef nonnull %54, i32 noundef %136, i32 noundef %137, double noundef 2.000000e+00) #8
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = call double @changeBipartiteAltStarsA(ptr noundef nonnull %54, i32 noundef %141, i32 noundef %142, double noundef 2.000000e+00) #8
  %144 = load i32, ptr %4, align 4, !tbaa !5
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = call double @changeBipartiteAltStarsB(ptr noundef nonnull %54, i32 noundef %144, i32 noundef %145, double noundef 2.000000e+00) #8
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = call double @changeBipartiteAltKCyclesB(ptr noundef nonnull %54, i32 noundef %147, i32 noundef %148, double noundef 2.000000e+00) #8
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = call double @changeBipartiteAltKCyclesA(ptr noundef nonnull %54, i32 noundef %150, i32 noundef %151, double noundef 2.000000e+00) #8
  %153 = load i32, ptr %4, align 4, !tbaa !5
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = call double @changeBipartiteTwoStarsB(ptr noundef nonnull %54, i32 noundef %153, i32 noundef %154, double noundef 2.000000e+00) #8
  %156 = load i32, ptr %4, align 4, !tbaa !5
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = call double @changeBipartiteTwoStarsA(ptr noundef nonnull %54, i32 noundef %156, i32 noundef %157, double noundef 2.000000e+00) #8
  %159 = load i32, ptr %4, align 4, !tbaa !5
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = call double @changeBipartiteThreeStarsB(ptr noundef nonnull %54, i32 noundef %159, i32 noundef %160, double noundef 2.000000e+00) #8
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = load i32, ptr %5, align 4, !tbaa !5
  %164 = call double @changeBipartiteThreeStarsA(ptr noundef nonnull %54, i32 noundef %162, i32 noundef %163, double noundef 2.000000e+00) #8
  %165 = load i32, ptr %4, align 4, !tbaa !5
  %166 = load i32, ptr %5, align 4, !tbaa !5
  %167 = call double @changeThreePaths(ptr noundef nonnull %54, i32 noundef %165, i32 noundef %166, double noundef 2.000000e+00) #8
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %136, i32 noundef %139, double noundef %140, double noundef %143, double noundef %146, double noundef %149, double noundef %152, double noundef %155, double noundef %158, double noundef %161, double noundef %164, double noundef %167)
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = load i32, ptr %5, align 4, !tbaa !5
  %171 = call double @changeBipartitePowerFourCyclesA(ptr noundef nonnull %54, i32 noundef %169, i32 noundef %170, double noundef 2.000000e+00) #8
  %172 = load i32, ptr %4, align 4, !tbaa !5
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = call double @changeBipartitePowerFourCyclesB(ptr noundef nonnull %54, i32 noundef %172, i32 noundef %173, double noundef 2.000000e+00) #8
  %175 = fadd double %171, %174
  %176 = load i32, ptr %4, align 4, !tbaa !5
  %177 = load i32, ptr %5, align 4, !tbaa !5
  %178 = call double @changePowerFourCycles(ptr noundef nonnull %54, i32 noundef %176, i32 noundef %177, double noundef 2.000000e+00) #8
  %179 = fsub double %175, %178
  %180 = call double @llvm.fabs.f64(double %179)
  %181 = fcmp ugt double %180, 0x3EB0C6F7A0B5ED8D
  br i1 %181, label %182, label %183

182:                                              ; preds = %.split.us
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.7, i32 noundef 263, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

183:                                              ; preds = %.split.us
  %184 = add nuw nsw i32 %.0103.ph, 1
  %185 = icmp ugt i32 %.0103.ph, 998
  %or.cond3 = select i1 %.not130, i1 %185, i1 false
  br i1 %or.cond3, label %.loopexit165, label %.outer166

186:                                              ; preds = %114, %.outer166.split
  %187 = call i32 @fclose(ptr noundef %.0)
  %188 = call noalias ptr @fopen(ptr noundef %.0101, ptr noundef nonnull @.str.1)
  %.not138 = icmp eq ptr %188, null
  br i1 %.not138, label %189, label %.loopexit165

189:                                              ; preds = %186
  %190 = load ptr, ptr @stderr, align 8, !tbaa !9
  %191 = tail call ptr @__errno_location() #11
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = call ptr @strerror(i32 noundef %192) #8
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef nonnull @.str.2, ptr noundef %.0101, ptr noundef %193) #9
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit165:                                     ; preds = %183, %186
  %.1 = phi ptr [ %188, %186 ], [ %.0, %183 ]
  %195 = call i32 @gettimeofday(ptr noundef nonnull %9, ptr noundef null) #8
  %196 = call i32 @timeval_subtract(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %8) #8
  %197 = load i64, ptr %10, align 8, !tbaa !11
  %198 = mul nsw i64 %197, 1000
  %199 = load i64, ptr %59, align 8, !tbaa !14
  %200 = sdiv i64 %199, 1000
  %201 = add nsw i64 %200, %198
  %202 = trunc i64 %201 to i32
  %203 = load ptr, ptr @stderr, align 8, !tbaa !9
  %204 = sitofp i32 %202 to double
  %205 = fdiv double %204, 1.000000e+03
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef nonnull @.str.15, double noundef %205) #9
  %207 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %208 = getelementptr inbounds i8, ptr %54, i64 56
  br i1 %.not130, label %.outer164.us, label %.outer164

.outer164.us:                                     ; preds = %.loopexit165, %.split182.us.us
  %.1104.ph.us = phi i32 [ %229, %.split182.us.us ], [ 0, %.loopexit165 ]
  br label %.preheader161.us.us

.preheader161.us.us:                              ; preds = %.preheader161.us.us.backedge, %.outer164.us
  %209 = call i32 @rand() #8
  %210 = load i32, ptr %68, align 8, !tbaa !15
  %211 = urem i32 %209, %210
  store i32 %211, ptr %4, align 4, !tbaa !5
  %212 = call i32 @rand() #8
  %213 = load i32, ptr %103, align 4, !tbaa !17
  %214 = urem i32 %212, %213
  %215 = add i32 %214, %210
  store i32 %215, ptr %5, align 4, !tbaa !5
  %216 = load i32, ptr %4, align 4, !tbaa !5
  %217 = call i32 @isEdge(ptr noundef %54, i32 noundef %216, i32 noundef %215) #8
  %.not139.us.us = icmp eq i32 %217, 0
  br i1 %.not139.us.us, label %.loopexit162.us.us, label %.preheader161.us.us.backedge

.preheader161.us.us.backedge:                     ; preds = %.preheader161.us.us, %.loopexit162.us.us
  br label %.preheader161.us.us, !llvm.loop !25

.loopexit162.us.us:                               ; preds = %.preheader161.us.us
  %218 = load i32, ptr %4, align 4, !tbaa !5
  %219 = load i32, ptr %5, align 4, !tbaa !5
  %220 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %218, i32 noundef %219) #8
  %.not145.us.us = icmp eq i32 %220, 0
  br i1 %.not145.us.us, label %.split182.us.us, label %.preheader161.us.us.backedge

.split182.us.us:                                  ; preds = %.loopexit162.us.us
  %221 = load i32, ptr %4, align 4, !tbaa !5
  %222 = load i32, ptr %5, align 4, !tbaa !5
  call void @insertEdge(ptr noundef nonnull %54, i32 noundef %221, i32 noundef %222) #8
  %223 = load i32, ptr %4, align 4, !tbaa !5
  %224 = load i32, ptr %5, align 4, !tbaa !5
  %225 = load i32, ptr %68, align 8, !tbaa !15
  %226 = sub i32 %224, %225
  %227 = load i32, ptr %208, align 8, !tbaa !26
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %223, i32 noundef %226, i32 noundef %227)
  %229 = add nuw nsw i32 %.1104.ph.us, 1
  %exitcond = icmp eq i32 %229, 1000
  br i1 %exitcond, label %.loopexit163, label %.outer164.us

.outer164:                                        ; preds = %.loopexit165, %.outer164.backedge
  %230 = call i32 @feof(ptr noundef %.1) #8
  %.not140 = icmp eq i32 %230, 0
  br i1 %.not140, label %231, label %261

231:                                              ; preds = %.outer164
  %232 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.1)
  %.not141 = icmp eq ptr %232, null
  br i1 %.not141, label %261, label %233

233:                                              ; preds = %231
  %234 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.9, ptr noundef nonnull %4, ptr noundef nonnull %5) #8
  %.not142 = icmp eq i32 %234, 2
  br i1 %.not142, label %238, label %235

235:                                              ; preds = %233
  %236 = load ptr, ptr @stderr, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef nonnull @.str.10) #9
  call void @exit(i32 noundef 1) #10
  unreachable

238:                                              ; preds = %233
  %239 = load i32, ptr %4, align 4, !tbaa !5
  %240 = load i32, ptr %54, align 8, !tbaa !27
  %.not143 = icmp ult i32 %239, %240
  br i1 %.not143, label %244, label %241

241:                                              ; preds = %238
  %242 = load ptr, ptr @stderr, align 8, !tbaa !9
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef nonnull @.str.11, i32 noundef %239) #9
  call void @exit(i32 noundef 1) #10
  unreachable

244:                                              ; preds = %238
  %245 = load i32, ptr %5, align 4, !tbaa !5
  %.not144 = icmp ult i32 %245, %240
  br i1 %.not144, label %249, label %246

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

249:                                              ; preds = %244
  %250 = load i32, ptr %68, align 8, !tbaa !15
  %251 = add i32 %250, %245
  store i32 %251, ptr %5, align 4, !tbaa !5
  %252 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %239, i32 noundef %251) #8
  %.not145 = icmp eq i32 %252, 0
  br i1 %.not145, label %.split182, label %.outer164.backedge

.outer164.backedge:                               ; preds = %249, %.split182
  br label %.outer164

.split182:                                        ; preds = %249
  %253 = load i32, ptr %4, align 4, !tbaa !5
  %254 = load i32, ptr %5, align 4, !tbaa !5
  call void @insertEdge(ptr noundef nonnull %54, i32 noundef %253, i32 noundef %254) #8
  %255 = load i32, ptr %4, align 4, !tbaa !5
  %256 = load i32, ptr %5, align 4, !tbaa !5
  %257 = load i32, ptr %68, align 8, !tbaa !15
  %258 = sub i32 %256, %257
  %259 = load i32, ptr %208, align 8, !tbaa !26
  %260 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %255, i32 noundef %258, i32 noundef %259)
  br label %.outer164.backedge

261:                                              ; preds = %231, %.outer164
  %262 = call i32 @fclose(ptr noundef %.1)
  %263 = call noalias ptr @fopen(ptr noundef %.0101, ptr noundef nonnull @.str.1)
  %.not146 = icmp eq ptr %263, null
  br i1 %.not146, label %264, label %.loopexit163

264:                                              ; preds = %261
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = tail call ptr @__errno_location() #11
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = call ptr @strerror(i32 noundef %267) #8
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef nonnull @.str.2, ptr noundef %.0101, ptr noundef %268) #9
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit163:                                     ; preds = %.split182.us.us, %261
  %.2 = phi ptr [ %263, %261 ], [ %.1, %.split182.us.us ]
  %270 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %.outer

.outer:                                           ; preds = %.split185.us, %.loopexit163
  %.2105.ph = phi i32 [ %314, %.split185.us ], [ 0, %.loopexit163 ]
  br i1 %.not130, label %.preheader.us, label %.outer.split

.preheader.us:                                    ; preds = %.outer, %.preheader.us.backedge
  %271 = call i32 @rand() #8
  %272 = load i32, ptr %68, align 8, !tbaa !15
  %273 = urem i32 %271, %272
  store i32 %273, ptr %4, align 4, !tbaa !5
  %274 = call i32 @rand() #8
  %275 = load i32, ptr %103, align 4, !tbaa !17
  %276 = urem i32 %274, %275
  %277 = add i32 %276, %272
  store i32 %277, ptr %5, align 4, !tbaa !5
  %278 = load i32, ptr %4, align 4, !tbaa !5
  %279 = call i32 @isEdge(ptr noundef %54, i32 noundef %278, i32 noundef %277) #8
  %.not147.us = icmp eq i32 %279, 0
  br i1 %.not147.us, label %.preheader.us.backedge, label %.loopexit.us

.preheader.us.backedge:                           ; preds = %.preheader.us, %.loopexit.us
  br label %.preheader.us, !llvm.loop !28

.loopexit.us:                                     ; preds = %.preheader.us
  %280 = load i32, ptr %4, align 4, !tbaa !5
  %281 = load i32, ptr %5, align 4, !tbaa !5
  %282 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %280, i32 noundef %281) #8
  %.not153.us = icmp eq i32 %282, 0
  br i1 %.not153.us, label %.preheader.us.backedge, label %.split185.us

.outer.split:                                     ; preds = %.outer, %302
  %283 = call i32 @feof(ptr noundef %.2) #8
  %.not148 = icmp eq i32 %283, 0
  br i1 %.not148, label %284, label %316

284:                                              ; preds = %.outer.split
  %285 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.2)
  %.not149 = icmp eq ptr %285, null
  br i1 %.not149, label %316, label %286

286:                                              ; preds = %284
  %287 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.9, ptr noundef nonnull %4, ptr noundef nonnull %5) #8
  %.not150 = icmp eq i32 %287, 2
  br i1 %.not150, label %291, label %288

288:                                              ; preds = %286
  %289 = load ptr, ptr @stderr, align 8, !tbaa !9
  %290 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %289, ptr noundef nonnull @.str.10) #9
  call void @exit(i32 noundef 1) #10
  unreachable

291:                                              ; preds = %286
  %292 = load i32, ptr %4, align 4, !tbaa !5
  %293 = load i32, ptr %54, align 8, !tbaa !27
  %.not151 = icmp ult i32 %292, %293
  br i1 %.not151, label %297, label %294

294:                                              ; preds = %291
  %295 = load ptr, ptr @stderr, align 8, !tbaa !9
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %295, ptr noundef nonnull @.str.11, i32 noundef %292) #9
  call void @exit(i32 noundef 1) #10
  unreachable

297:                                              ; preds = %291
  %298 = load i32, ptr %5, align 4, !tbaa !5
  %.not152 = icmp ult i32 %298, %293
  br i1 %.not152, label %302, label %299

299:                                              ; preds = %297
  %300 = load ptr, ptr @stderr, align 8, !tbaa !9
  %301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef nonnull @.str.12, i32 noundef %298) #9
  call void @exit(i32 noundef 1) #10
  unreachable

302:                                              ; preds = %297
  %303 = load i32, ptr %68, align 8, !tbaa !15
  %304 = add i32 %303, %298
  store i32 %304, ptr %5, align 4, !tbaa !5
  %305 = call i32 @isEdge(ptr noundef nonnull %54, i32 noundef %292, i32 noundef %304) #8
  %.not153 = icmp eq i32 %305, 0
  br i1 %.not153, label %.outer.split, label %.split185.us

.split185.us:                                     ; preds = %302, %.loopexit.us
  %306 = load i32, ptr %4, align 4, !tbaa !5
  %307 = load i32, ptr %5, align 4, !tbaa !5
  call void @removeEdge(ptr noundef nonnull %54, i32 noundef %306, i32 noundef %307) #8
  %308 = load i32, ptr %4, align 4, !tbaa !5
  %309 = load i32, ptr %5, align 4, !tbaa !5
  %310 = load i32, ptr %68, align 8, !tbaa !15
  %311 = sub i32 %309, %310
  %312 = load i32, ptr %208, align 8, !tbaa !26
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %308, i32 noundef %311, i32 noundef %312)
  %314 = add nuw nsw i32 %.2105.ph, 1
  %315 = icmp ugt i32 %.2105.ph, 998
  %or.cond7 = select i1 %.not130, i1 %315, i1 false
  br i1 %or.cond7, label %.loopexit160, label %.outer

316:                                              ; preds = %284, %.outer.split
  %317 = call i32 @fclose(ptr noundef %.2)
  br label %.loopexit160

.loopexit160:                                     ; preds = %.split185.us, %316
  call void @free_graph(ptr noundef %54) #8
  call void @exit(i32 noundef 0) #10
  unreachable

318:                                              ; preds = %47, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #8
  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 void @get_num_vertices_from_bipartite_pajek_file(ptr noundef, ptr noundef, 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

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

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

; 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 double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

declare double @changeBipartiteThreeStarsA(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 @changeBipartitePowerFourCyclesA(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #7

; 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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, !13, i64 0}
!12 = !{!"timeval", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !6, i64 88}
!16 = !{!"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}
!17 = !{!16, !6, i64 92}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19, !24}
!24 = !{!"llvm.loop.unswitch.partial.disable"}
!25 = distinct !{!25, !19}
!26 = !{!16, !6, i64 56}
!27 = !{!16, !6, i64 0}
!28 = distinct !{!28, !19}


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