; LLVM IR from stivalaa/EstimNetDirected :: Test/TestChangeStatsAttrBipartite (testDiffStatsChangeStatsAttrBipartiteMain)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.graph_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 }

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

36:                                               ; preds = %2
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 4
  br i1 %38, label %39, label %43

39:                                               ; preds = %36, %2
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @usage(ptr noundef %42)
  br label %43

43:                                               ; preds = %39, %36
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  store ptr %46, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 2
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  store ptr %49, ptr %19, align 8, !tbaa !9
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 4
  br i1 %51, label %52, label %67

52:                                               ; preds = %43
  store i32 1, ptr %15, align 4, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 3
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  store ptr %55, ptr %16, align 8, !tbaa !9
  %56 = load ptr, ptr %16, align 8, !tbaa !9
  %57 = call noalias ptr @fopen(ptr noundef %56, ptr noundef @.str)
  store ptr %57, ptr %17, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %66, label %59

59:                                               ; preds = %52
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = load ptr, ptr %16, align 8, !tbaa !9
  %62 = call ptr @__errno_location() #8
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = call ptr @strerror(i32 noundef %63) #7
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.1, ptr noundef %61, ptr noundef %64) #7
  call void @exit(i32 noundef 1) #9
  unreachable

66:                                               ; preds = %52
  br label %68

67:                                               ; preds = %43
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %67, %66
  %69 = load ptr, ptr %9, align 8, !tbaa !9
  %70 = call noalias ptr @fopen(ptr noundef %69, ptr noundef @.str)
  store ptr %70, ptr %10, align 8, !tbaa !9
  %71 = icmp ne ptr %70, null
  br i1 %71, label %79, label %72

72:                                               ; preds = %68
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = load ptr, ptr %9, align 8, !tbaa !9
  %75 = call ptr @__errno_location() #8
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = call ptr @strerror(i32 noundef %76) #7
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.2, ptr noundef %74, ptr noundef %77) #7
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %28, align 4
  br label %278

79:                                               ; preds = %68
  %80 = load ptr, ptr %10, align 8, !tbaa !9
  call void @get_num_vertices_from_bipartite_pajek_file(ptr noundef %80, ptr noundef %11, ptr noundef %12)
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = call ptr @allocate_graph(i32 noundef %81, i32 noundef 0, i32 noundef 1, i32 noundef %82)
  store ptr %83, ptr %13, align 8, !tbaa !9
  %84 = load ptr, ptr %13, align 8, !tbaa !9
  %85 = load ptr, ptr %19, align 8, !tbaa !9
  %86 = call i32 @load_attributes(ptr noundef %84, ptr noundef %85, ptr noundef null, ptr noundef null, ptr noundef null)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %79
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.3) #7
  call void @exit(i32 noundef 1) #9
  unreachable

91:                                               ; preds = %79
  %92 = load ptr, ptr %9, align 8, !tbaa !9
  %93 = call noalias ptr @fopen(ptr noundef %92, ptr noundef @.str)
  store ptr %93, ptr %10, align 8, !tbaa !9
  %94 = icmp ne ptr %93, null
  br i1 %94, label %102, label %95

95:                                               ; preds = %91
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = load ptr, ptr %9, align 8, !tbaa !9
  %98 = call ptr @__errno_location() #8
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = call ptr @strerror(i32 noundef %99) #7
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.2, ptr noundef %97, ptr noundef %100) #7
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %28, align 4
  br label %278

102:                                              ; preds = %91
  %103 = load ptr, ptr %10, align 8, !tbaa !9
  %104 = load ptr, ptr %13, align 8, !tbaa !9
  %105 = call ptr @load_graph_from_arclist_file(ptr noundef %103, ptr noundef %104, 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 %105, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 1, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 2, ptr %31, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %269, %102
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %154

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

114:                                              ; preds = %110
  br label %270

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

120:                                              ; preds = %115
  br label %270

121:                                              ; preds = %115
  %122 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
  %123 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %122, ptr noundef @.str.4, ptr noundef %7, ptr noundef %8) #7
  %124 = icmp ne i32 %123, 2
  br i1 %124, label %125, label %128

125:                                              ; preds = %121
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.5) #7
  call void @exit(i32 noundef 1) #9
  unreachable

128:                                              ; preds = %121
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = load ptr, ptr %13, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.graph_s, ptr %130, i32 0, i32 13
  %132 = load i32, ptr %131, align 8, !tbaa !11
  %133 = icmp uge i32 %129, %132
  br i1 %133, label %134, label %138

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

138:                                              ; preds = %128
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.graph_s, ptr %140, i32 0, i32 14
  %142 = load i32, ptr %141, align 4, !tbaa !13
  %143 = icmp uge i32 %139, %142
  br i1 %143, label %144, label %148

144:                                              ; preds = %138
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.7, i32 noundef %146) #7
  call void @exit(i32 noundef 1) #9
  unreachable

148:                                              ; preds = %138
  %149 = load ptr, ptr %13, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.graph_s, ptr %149, i32 0, i32 13
  %151 = load i32, ptr %150, align 8, !tbaa !11
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = add i32 %152, %151
  store i32 %153, ptr %8, align 4, !tbaa !5
  br label %169

154:                                              ; preds = %107
  %155 = call i32 @rand() #7
  %156 = load ptr, ptr %13, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.graph_s, ptr %156, i32 0, i32 13
  %158 = load i32, ptr %157, align 8, !tbaa !11
  %159 = urem i32 %155, %158
  store i32 %159, ptr %7, align 4, !tbaa !5
  %160 = load ptr, ptr %13, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.graph_s, ptr %160, i32 0, i32 13
  %162 = load i32, ptr %161, align 8, !tbaa !11
  %163 = call i32 @rand() #7
  %164 = load ptr, ptr %13, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.graph_s, ptr %164, i32 0, i32 14
  %166 = load i32, ptr %165, align 4, !tbaa !13
  %167 = urem i32 %163, %166
  %168 = add i32 %162, %167
  store i32 %168, ptr %8, align 4, !tbaa !5
  br label %169

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

175:                                              ; preds = %169
  %176 = load ptr, ptr %13, align 8, !tbaa !9
  %177 = load i32, ptr %7, align 4, !tbaa !5
  %178 = load i32, ptr %8, align 4, !tbaa !5
  call void @removeEdge(ptr noundef %176, i32 noundef %177, i32 noundef %178)
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %175, %169
  %180 = load ptr, ptr %13, align 8, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = load i32, ptr %8, align 4, !tbaa !5
  %183 = call double @changeBipartiteExactlyOneNeighbourA(ptr noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef 1, i32 noundef 0, double noundef 0.000000e+00)
  store double %183, ptr %20, align 8, !tbaa !14
  %184 = load ptr, ptr %13, align 8, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !5
  %186 = load i32, ptr %8, align 4, !tbaa !5
  %187 = call double @changeBipartiteExactlyOneNeighbourB(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00)
  store double %187, ptr %21, align 8, !tbaa !14
  %188 = load ptr, ptr %13, align 8, !tbaa !9
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = load i32, ptr %8, align 4, !tbaa !5
  %191 = call double @changeBipartiteTwoPathExactlyOneNeighbourA(ptr noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef 1, i32 noundef 0, double noundef 0.000000e+00)
  store double %191, ptr %22, align 8, !tbaa !14
  %192 = load ptr, ptr %13, align 8, !tbaa !9
  %193 = load i32, ptr %7, align 4, !tbaa !5
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = call double @changeBipartiteTwoPathExactlyOneNeighbourB(ptr noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00)
  store double %195, ptr %23, align 8, !tbaa !14
  %196 = load ptr, ptr %13, align 8, !tbaa !9
  %197 = call double @BipartiteExactlyOneNeighbourA(ptr noundef %196, i32 noundef 1)
  store double %197, ptr %24, align 8, !tbaa !14
  %198 = load ptr, ptr %13, align 8, !tbaa !9
  %199 = call double @BipartiteExactlyOneNeighbourB(ptr noundef %198, i32 noundef 0)
  store double %199, ptr %25, align 8, !tbaa !14
  %200 = load ptr, ptr %13, align 8, !tbaa !9
  %201 = call double @BipartiteTwoPathExactlyOneNeighbourA(ptr noundef %200, i32 noundef 1)
  store double %201, ptr %26, align 8, !tbaa !14
  %202 = load ptr, ptr %13, align 8, !tbaa !9
  %203 = call double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef %202, i32 noundef 0)
  store double %203, ptr %27, align 8, !tbaa !14
  %204 = load ptr, ptr %13, align 8, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !5
  %206 = load i32, ptr %8, align 4, !tbaa !5
  call void @insertEdge(ptr noundef %204, i32 noundef %205, i32 noundef %206)
  %207 = load double, ptr %20, align 8, !tbaa !14
  %208 = load ptr, ptr %13, align 8, !tbaa !9
  %209 = call double @BipartiteExactlyOneNeighbourA(ptr noundef %208, i32 noundef 1)
  %210 = load double, ptr %24, align 8, !tbaa !14
  %211 = fsub double %209, %210
  %212 = fsub double %207, %211
  %213 = call double @llvm.fabs.f64(double %212)
  %214 = fcmp ole double %213, 1.000000e-08
  br i1 %214, label %215, label %216

215:                                              ; preds = %179
  br label %217

216:                                              ; preds = %179
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

217:                                              ; preds = %215
  %218 = load double, ptr %21, align 8, !tbaa !14
  %219 = load ptr, ptr %13, align 8, !tbaa !9
  %220 = call double @BipartiteExactlyOneNeighbourB(ptr noundef %219, i32 noundef 0)
  %221 = load double, ptr %25, align 8, !tbaa !14
  %222 = fsub double %220, %221
  %223 = fsub double %218, %222
  %224 = call double @llvm.fabs.f64(double %223)
  %225 = fcmp ole double %224, 1.000000e-08
  br i1 %225, label %226, label %227

226:                                              ; preds = %217
  br label %228

227:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.9, i32 noundef 184, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

228:                                              ; preds = %226
  %229 = load double, ptr %22, align 8, !tbaa !14
  %230 = load ptr, ptr %13, align 8, !tbaa !9
  %231 = call double @BipartiteTwoPathExactlyOneNeighbourA(ptr noundef %230, i32 noundef 1)
  %232 = load double, ptr %26, align 8, !tbaa !14
  %233 = fsub double %231, %232
  %234 = fsub double %229, %233
  %235 = call double @llvm.fabs.f64(double %234)
  %236 = fcmp ole double %235, 1.000000e-08
  br i1 %236, label %237, label %238

237:                                              ; preds = %228
  br label %239

238:                                              ; preds = %228
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 187, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

239:                                              ; preds = %237
  %240 = load double, ptr %23, align 8, !tbaa !14
  %241 = load ptr, ptr %13, align 8, !tbaa !9
  %242 = call double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef %241, i32 noundef 0)
  %243 = load double, ptr %27, align 8, !tbaa !14
  %244 = fsub double %242, %243
  %245 = fsub double %240, %244
  %246 = call double @llvm.fabs.f64(double %245)
  %247 = fcmp ole double %246, 1.000000e-08
  br i1 %247, label %248, label %249

248:                                              ; preds = %239
  br label %250

249:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.9, i32 noundef 190, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

250:                                              ; preds = %248
  %251 = load ptr, ptr %13, align 8, !tbaa !9
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = load i32, ptr %8, align 4, !tbaa !5
  call void @removeEdge(ptr noundef %251, i32 noundef %252, i32 noundef %253)
  %254 = load i32, ptr %14, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %14, align 4, !tbaa !5
  %256 = load i32, ptr %18, align 4, !tbaa !5
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %262

258:                                              ; preds = %250
  %259 = load ptr, ptr %13, align 8, !tbaa !9
  %260 = load i32, ptr %7, align 4, !tbaa !5
  %261 = load i32, ptr %8, align 4, !tbaa !5
  call void @insertEdge(ptr noundef %259, i32 noundef %260, i32 noundef %261)
  br label %262

262:                                              ; preds = %258, %250
  %263 = load i32, ptr %15, align 4, !tbaa !5
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %269, label %265

265:                                              ; preds = %262
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = icmp sge i32 %266, 100
  br i1 %267, label %268, label %269

268:                                              ; preds = %265
  br label %270

269:                                              ; preds = %265, %262
  br label %106

270:                                              ; preds = %268, %120, %114
  %271 = load i32, ptr %15, align 4, !tbaa !5
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %276

273:                                              ; preds = %270
  %274 = load ptr, ptr %17, align 8, !tbaa !9
  %275 = call i32 @fclose(ptr noundef %274)
  br label %276

276:                                              ; preds = %273, %270
  %277 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free_graph(ptr noundef %277)
  call void @exit(i32 noundef 0) #9
  unreachable

278:                                              ; preds = %95, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %6) #7
  %279 = load i32, ptr %3, align 4
  ret i32 %279
}

; 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 uwtable
declare hidden void @usage(ptr noundef) #0

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

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

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

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

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

declare void @get_num_vertices_from_bipartite_pajek_file(ptr noundef, ptr noundef, ptr noundef) #3

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

declare i32 @load_attributes(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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) #3

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

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

; 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) #3

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

declare double @changeBipartiteExactlyOneNeighbourA(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #3

declare double @changeBipartiteExactlyOneNeighbourB(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #3

declare double @changeBipartiteTwoPathExactlyOneNeighbourA(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #3

declare double @changeBipartiteTwoPathExactlyOneNeighbourB(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #3

declare double @BipartiteExactlyOneNeighbourA(ptr noundef, i32 noundef) #3

declare double @BipartiteExactlyOneNeighbourB(ptr noundef, i32 noundef) #3

declare double @BipartiteTwoPathExactlyOneNeighbourA(ptr noundef, i32 noundef) #3

declare double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef, i32 noundef) #3

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

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

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

declare i32 @fclose(ptr noundef) #3

declare void @free_graph(ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 88}
!12 = !{!"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}
!13 = !{!12, !6, i64 92}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}


; 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"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [137 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [170 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [170 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
  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
  %8 = tail call i64 @time(ptr noundef null) #8
  %9 = trunc i64 %8 to i32
  tail call void @srand(i32 noundef %9) #8
  %10 = add i32 %0, -5
  %or.cond = icmp ult i32 %10, -2
  br i1 %or.cond, label %.thread, label %16

.thread:                                          ; preds = %2
  %11 = load ptr, ptr %1, align 8, !tbaa !9
  tail call void @usage(ptr noundef %11)
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  br label %31

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %.not76.not = icmp eq i32 %0, 4
  br i1 %.not76.not, label %21, label %31

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = tail call noalias ptr @fopen(ptr noundef %23, ptr noundef nonnull @.str)
  %.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() #9
  %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.1, ptr noundef %23, ptr noundef %29) #10
  tail call void @exit(i32 noundef 1) #11
  unreachable

31:                                               ; preds = %.thread, %16, %21
  %.not7685 = phi i1 [ false, %21 ], [ true, %16 ], [ true, %.thread ]
  %32 = phi ptr [ %20, %21 ], [ %20, %16 ], [ %15, %.thread ]
  %33 = phi ptr [ %18, %21 ], [ %18, %16 ], [ %13, %.thread ]
  %.064 = phi ptr [ %24, %21 ], [ null, %16 ], [ null, %.thread ]
  %34 = tail call noalias ptr @fopen(ptr noundef %33, ptr noundef nonnull @.str)
  %.not72 = icmp eq ptr %34, null
  br i1 %.not72, label %35, label %41

35:                                               ; preds = %31
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = tail call ptr @__errno_location() #9
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = tail call ptr @strerror(i32 noundef %38) #8
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.2, ptr noundef %33, ptr noundef %39) #10
  br label %155

41:                                               ; preds = %31
  call void @get_num_vertices_from_bipartite_pajek_file(ptr noundef nonnull %34, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = call ptr @allocate_graph(i32 noundef %42, i32 noundef 0, i32 noundef 1, i32 noundef %43) #8
  %45 = call i32 @load_attributes(ptr noundef %44, ptr noundef %32, ptr noundef null, ptr noundef null, ptr noundef null) #8
  %.not73 = icmp eq i32 %45, 0
  br i1 %.not73, label %49, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.3) #10
  call void @exit(i32 noundef 1) #11
  unreachable

49:                                               ; preds = %41
  %50 = call noalias ptr @fopen(ptr noundef %33, ptr noundef nonnull @.str)
  %.not74 = icmp eq ptr %50, null
  br i1 %.not74, label %51, label %57

51:                                               ; preds = %49
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = tail call ptr @__errno_location() #9
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = call ptr @strerror(i32 noundef %54) #8
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.2, ptr noundef %33, ptr noundef %55) #10
  br label %155

57:                                               ; preds = %49
  %58 = call ptr @load_graph_from_arclist_file(ptr noundef nonnull %50, ptr noundef %44, 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
  %59 = getelementptr inbounds i8, ptr %58, i64 88
  %60 = getelementptr inbounds i8, ptr %58, i64 92
  br label %61

61:                                               ; preds = %152, %57
  %.065 = phi i32 [ 0, %57 ], [ %.1, %152 ]
  %.062 = phi i32 [ 0, %57 ], [ %148, %152 ]
  br i1 %.not7685, label %85, label %62

62:                                               ; preds = %61
  %63 = call i32 @feof(ptr noundef %.064) #8
  %.not77 = icmp eq i32 %63, 0
  br i1 %.not77, label %64, label %.thread86

64:                                               ; preds = %62
  %65 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.064)
  %.not78 = icmp eq ptr %65, null
  br i1 %.not78, label %.thread86, label %66

66:                                               ; preds = %64
  %67 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %5) #8
  %.not79 = icmp eq i32 %67, 2
  br i1 %.not79, label %71, label %68

68:                                               ; preds = %66
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.5) #10
  call void @exit(i32 noundef 1) #11
  unreachable

71:                                               ; preds = %66
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load i32, ptr %59, align 8, !tbaa !11
  %.not80 = icmp ult i32 %72, %73
  br i1 %.not80, label %77, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr @stderr, align 8, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.6, i32 noundef %72) #10
  call void @exit(i32 noundef 1) #11
  unreachable

77:                                               ; preds = %71
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = load i32, ptr %60, align 4, !tbaa !13
  %.not81 = icmp ult i32 %78, %79
  br i1 %.not81, label %83, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.7, i32 noundef %78) #10
  call void @exit(i32 noundef 1) #11
  unreachable

83:                                               ; preds = %77
  %84 = add i32 %78, %73
  br label %93

85:                                               ; preds = %61
  %86 = call i32 @rand() #8
  %87 = load i32, ptr %59, align 8, !tbaa !11
  %88 = urem i32 %86, %87
  store i32 %88, ptr %4, align 4, !tbaa !5
  %89 = call i32 @rand() #8
  %90 = load i32, ptr %60, align 4, !tbaa !13
  %91 = urem i32 %89, %90
  %92 = add i32 %91, %87
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %85, %83
  %94 = phi i32 [ %.pre, %85 ], [ %72, %83 ]
  %storemerge = phi i32 [ %92, %85 ], [ %84, %83 ]
  store i32 %storemerge, ptr %5, align 4, !tbaa !5
  %95 = call i32 @isEdge(ptr noundef nonnull %58, i32 noundef %94, i32 noundef %storemerge) #8
  %.not82 = icmp eq i32 %95, 0
  br i1 %.not82, label %99, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = load i32, ptr %5, align 4, !tbaa !5
  call void @removeEdge(ptr noundef nonnull %58, i32 noundef %97, i32 noundef %98) #8
  br label %99

99:                                               ; preds = %96, %93
  %.1 = phi i32 [ 1, %96 ], [ %.065, %93 ]
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = call double @changeBipartiteExactlyOneNeighbourA(ptr noundef nonnull %58, i32 noundef %100, i32 noundef %101, i32 noundef 1, i32 noundef 0, double noundef 0.000000e+00) #8
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = call double @changeBipartiteExactlyOneNeighbourB(ptr noundef nonnull %58, i32 noundef %103, i32 noundef %104, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00) #8
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = call double @changeBipartiteTwoPathExactlyOneNeighbourA(ptr noundef nonnull %58, i32 noundef %106, i32 noundef %107, i32 noundef 1, i32 noundef 0, double noundef 0.000000e+00) #8
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = call double @changeBipartiteTwoPathExactlyOneNeighbourB(ptr noundef nonnull %58, i32 noundef %109, i32 noundef %110, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00) #8
  %112 = call double @BipartiteExactlyOneNeighbourA(ptr noundef nonnull %58, i32 noundef 1) #8
  %113 = call double @BipartiteExactlyOneNeighbourB(ptr noundef nonnull %58, i32 noundef 0) #8
  %114 = call double @BipartiteTwoPathExactlyOneNeighbourA(ptr noundef nonnull %58, i32 noundef 1) #8
  %115 = call double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef nonnull %58, i32 noundef 0) #8
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = load i32, ptr %5, align 4, !tbaa !5
  call void @insertEdge(ptr noundef nonnull %58, i32 noundef %116, i32 noundef %117) #8
  %118 = call double @BipartiteExactlyOneNeighbourA(ptr noundef nonnull %58, i32 noundef 1) #8
  %119 = fsub double %118, %112
  %120 = fsub double %102, %119
  %121 = call double @llvm.fabs.f64(double %120)
  %122 = fcmp ugt double %121, 1.000000e-08
  br i1 %122, label %123, label %124

123:                                              ; preds = %99
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

124:                                              ; preds = %99
  %125 = call double @BipartiteExactlyOneNeighbourB(ptr noundef %58, i32 noundef 0) #8
  %126 = fsub double %125, %113
  %127 = fsub double %105, %126
  %128 = call double @llvm.fabs.f64(double %127)
  %129 = fcmp ugt double %128, 1.000000e-08
  br i1 %129, label %130, label %131

130:                                              ; preds = %124
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.9, i32 noundef 184, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

131:                                              ; preds = %124
  %132 = call double @BipartiteTwoPathExactlyOneNeighbourA(ptr noundef %58, i32 noundef 1) #8
  %133 = fsub double %132, %114
  %134 = fsub double %108, %133
  %135 = call double @llvm.fabs.f64(double %134)
  %136 = fcmp ugt double %135, 1.000000e-08
  br i1 %136, label %137, label %138

137:                                              ; preds = %131
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 187, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

138:                                              ; preds = %131
  %139 = call double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef %58, i32 noundef 0) #8
  %140 = fsub double %139, %115
  %141 = fsub double %111, %140
  %142 = call double @llvm.fabs.f64(double %141)
  %143 = fcmp ugt double %142, 1.000000e-08
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.9, i32 noundef 190, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

145:                                              ; preds = %138
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = load i32, ptr %5, align 4, !tbaa !5
  call void @removeEdge(ptr noundef %58, i32 noundef %146, i32 noundef %147) #8
  %148 = add nuw nsw i32 %.062, 1
  %.not83 = icmp eq i32 %.1, 0
  br i1 %.not83, label %152, label %149

149:                                              ; preds = %145
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = load i32, ptr %5, align 4, !tbaa !5
  call void @insertEdge(ptr noundef %58, i32 noundef %150, i32 noundef %151) #8
  br label %152

152:                                              ; preds = %149, %145
  %153 = icmp ugt i32 %.062, 98
  %or.cond3 = select i1 %.not7685, i1 %153, i1 false
  br i1 %or.cond3, label %.loopexit, label %61

.thread86:                                        ; preds = %62, %64
  %154 = call i32 @fclose(ptr noundef %.064)
  br label %.loopexit

.loopexit:                                        ; preds = %152, %.thread86
  call void @free_graph(ptr noundef %58) #8
  call void @exit(i32 noundef 0) #11
  unreachable

155:                                              ; preds = %51, %35
  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: nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, 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 #4

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

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 i32 @load_attributes(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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

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

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

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

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

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

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

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

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

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

declare void @insertEdge(ptr noundef, i32 noundef, i32 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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 = { 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 #5 = { 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 #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 = { nounwind willreturn memory(none) }
attributes #10 = { cold nounwind }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 88}
!12 = !{!"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}
!13 = !{!12, !6, i64 92}


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