; LLVM IR from stivalaa/EstimNetDirected :: Test/TestChangeStatsDirected (testChangeStatsDirectedMain)

; 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 [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [360 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.timeval, align 8
  %19 = alloca %struct.timeval, align 8
  %20 = alloca %struct.timeval, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 2.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr null, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %23 = call i64 @time(ptr noundef null) #6
  %24 = trunc i64 %23 to i32
  call void @srand(i32 noundef %24) #6
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 2
  br i1 %26, label %30, label %27

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

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

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

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

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

56:                                               ; preds = %42
  br label %58

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

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

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

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

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

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

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

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

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

117:                                              ; preds = %113
  br label %252

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

123:                                              ; preds = %118
  br label %252

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

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

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

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

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

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

151:                                              ; preds = %141
  br label %163

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

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

167:                                              ; preds = %163
  br label %109

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

174:                                              ; preds = %168
  br label %109

175:                                              ; preds = %168
  %176 = load i32, ptr %8, align 4, !tbaa !5
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = load ptr, ptr %13, align 8, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = call double @changeAltOutStars(ptr noundef %178, i32 noundef %179, i32 noundef %180, double noundef 2.000000e+00)
  %182 = load ptr, ptr %13, align 8, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !5
  %184 = load i32, ptr %9, align 4, !tbaa !5
  %185 = call double @changeAltInStars(ptr noundef %182, i32 noundef %183, i32 noundef %184, double noundef 2.000000e+00)
  %186 = load ptr, ptr %13, align 8, !tbaa !9
  %187 = load i32, ptr %8, align 4, !tbaa !5
  %188 = load i32, ptr %9, align 4, !tbaa !5
  %189 = call double @changeAltKTrianglesT(ptr noundef %186, i32 noundef %187, i32 noundef %188, double noundef 2.000000e+00)
  %190 = load ptr, ptr %13, align 8, !tbaa !9
  %191 = load i32, ptr %8, align 4, !tbaa !5
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = call double @changeAltTwoPathsTD(ptr noundef %190, i32 noundef %191, i32 noundef %192, double noundef 2.000000e+00)
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = load i32, ptr %8, align 4, !tbaa !5
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = call double @changeAltKTrianglesC(ptr noundef %194, i32 noundef %195, i32 noundef %196, double noundef 2.000000e+00)
  %198 = load ptr, ptr %13, align 8, !tbaa !9
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = load i32, ptr %9, align 4, !tbaa !5
  %201 = call double @changeAltKTrianglesU(ptr noundef %198, i32 noundef %199, i32 noundef %200, double noundef 2.000000e+00)
  %202 = load ptr, ptr %13, align 8, !tbaa !9
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = load i32, ptr %9, align 4, !tbaa !5
  %205 = call double @changeAltKTrianglesD(ptr noundef %202, i32 noundef %203, i32 noundef %204, double noundef 2.000000e+00)
  %206 = load ptr, ptr %13, align 8, !tbaa !9
  %207 = load i32, ptr %8, align 4, !tbaa !5
  %208 = load i32, ptr %9, align 4, !tbaa !5
  %209 = call double @changeAltTwoPathsU(ptr noundef %206, i32 noundef %207, i32 noundef %208, double noundef 2.000000e+00)
  %210 = load ptr, ptr %13, align 8, !tbaa !9
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = load i32, ptr %9, align 4, !tbaa !5
  %213 = call double @changeSource(ptr noundef %210, i32 noundef %211, i32 noundef %212, double noundef 2.000000e+00)
  %214 = load ptr, ptr %13, align 8, !tbaa !9
  %215 = load i32, ptr %8, align 4, !tbaa !5
  %216 = load i32, ptr %9, align 4, !tbaa !5
  %217 = call double @changeSink(ptr noundef %214, i32 noundef %215, i32 noundef %216, double noundef 2.000000e+00)
  %218 = load ptr, ptr %13, align 8, !tbaa !9
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = load i32, ptr %9, align 4, !tbaa !5
  %221 = call double @changeIsolates(ptr noundef %218, i32 noundef %219, i32 noundef %220, double noundef 2.000000e+00)
  %222 = load ptr, ptr %13, align 8, !tbaa !9
  %223 = load i32, ptr %8, align 4, !tbaa !5
  %224 = load i32, ptr %9, align 4, !tbaa !5
  %225 = call double @changeTwoPath(ptr noundef %222, i32 noundef %223, i32 noundef %224, double noundef 2.000000e+00)
  %226 = load ptr, ptr %13, 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 @changeCyclicTriad(ptr noundef %226, i32 noundef %227, i32 noundef %228, double noundef 2.000000e+00)
  %230 = load ptr, ptr %13, 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 @changeTransitiveTriad(ptr noundef %230, i32 noundef %231, i32 noundef %232, double noundef 2.000000e+00)
  %234 = load ptr, ptr %13, 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 @changeInTwoStars(ptr noundef %234, i32 noundef %235, i32 noundef %236, double noundef 2.000000e+00)
  %238 = load ptr, ptr %13, 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 @changeOutTwoStars(ptr noundef %238, i32 noundef %239, i32 noundef %240, double noundef 2.000000e+00)
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %176, i32 noundef %177, double noundef %181, double noundef %185, double noundef %189, double noundef %193, double noundef %197, double noundef %201, double noundef %205, double noundef %209, double noundef %213, double noundef %217, double noundef %221, double noundef %225, double noundef %229, double noundef %233, double noundef %237, double noundef %241)
  %243 = load i32, ptr %14, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %14, align 4, !tbaa !5
  %245 = load i32, ptr %15, align 4, !tbaa !5
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %251, label %247

247:                                              ; preds = %175
  %248 = load i32, ptr %14, align 4, !tbaa !5
  %249 = icmp sge i32 %248, 1000
  br i1 %249, label %250, label %251

250:                                              ; preds = %247
  br label %252

251:                                              ; preds = %247, %175
  br label %109

252:                                              ; preds = %250, %123, %117
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %269

255:                                              ; preds = %252
  %256 = load ptr, ptr %17, align 8, !tbaa !9
  %257 = call i32 @fclose(ptr noundef %256)
  %258 = load ptr, ptr %16, align 8, !tbaa !9
  %259 = call noalias ptr @fopen(ptr noundef %258, ptr noundef @.str.1)
  store ptr %259, ptr %17, align 8, !tbaa !9
  %260 = icmp ne ptr %259, null
  br i1 %260, label %268, label %261

261:                                              ; preds = %255
  %262 = load ptr, ptr @stderr, align 8, !tbaa !9
  %263 = load ptr, ptr %16, align 8, !tbaa !9
  %264 = call ptr @__errno_location() #8
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = call ptr @strerror(i32 noundef %265) #6
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.2, ptr noundef %263, ptr noundef %266) #6
  call void @exit(i32 noundef 1) #7
  unreachable

268:                                              ; preds = %255
  br label %269

269:                                              ; preds = %268, %252
  %270 = call i32 @gettimeofday(ptr noundef %19, ptr noundef null) #6
  %271 = call i32 @timeval_subtract(ptr noundef %20, ptr noundef %19, ptr noundef %18)
  %272 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 0
  %273 = load i64, ptr %272, align 8, !tbaa !13
  %274 = mul nsw i64 1000, %273
  %275 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 1
  %276 = load i64, ptr %275, align 8, !tbaa !16
  %277 = sdiv i64 %276, 1000
  %278 = add nsw i64 %274, %277
  %279 = trunc i64 %278 to i32
  store i32 %279, ptr %21, align 4, !tbaa !5
  %280 = load ptr, ptr @stderr, align 8, !tbaa !9
  %281 = load i32, ptr %21, align 4, !tbaa !5
  %282 = sitofp i32 %281 to double
  %283 = fdiv double %282, 1.000000e+03
  %284 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.12, double noundef %283) #6
  %285 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %383, %364, %269
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %15, align 4, !tbaa !5
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %329

290:                                              ; preds = %287
  %291 = load ptr, ptr %17, align 8, !tbaa !9
  %292 = call i32 @feof(ptr noundef %291) #6
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %295

294:                                              ; preds = %290
  br label %384

295:                                              ; preds = %290
  %296 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %297 = load ptr, ptr %17, align 8, !tbaa !9
  %298 = call ptr @fgets(ptr noundef %296, i32 noundef 1023, ptr noundef %297)
  %299 = icmp ne ptr %298, null
  br i1 %299, label %301, label %300

300:                                              ; preds = %295
  br label %384

301:                                              ; preds = %295
  %302 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %303 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %302, ptr noundef @.str.7, ptr noundef %8, ptr noundef %9) #6
  %304 = icmp ne i32 %303, 2
  br i1 %304, label %305, label %308

305:                                              ; preds = %301
  %306 = load ptr, ptr @stderr, align 8, !tbaa !9
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef @.str.8) #6
  call void @exit(i32 noundef 1) #7
  unreachable

308:                                              ; preds = %301
  %309 = load i32, ptr %8, align 4, !tbaa !5
  %310 = load ptr, ptr %13, align 8, !tbaa !9
  %311 = getelementptr inbounds %struct.graph_s, ptr %310, i32 0, i32 0
  %312 = load i32, ptr %311, align 8, !tbaa !17
  %313 = icmp uge i32 %309, %312
  br i1 %313, label %314, label %318

314:                                              ; preds = %308
  %315 = load ptr, ptr @stderr, align 8, !tbaa !9
  %316 = load i32, ptr %8, align 4, !tbaa !5
  %317 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef @.str.9, i32 noundef %316) #6
  call void @exit(i32 noundef 1) #7
  unreachable

318:                                              ; preds = %308
  %319 = load i32, ptr %9, align 4, !tbaa !5
  %320 = load ptr, ptr %13, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.graph_s, ptr %320, i32 0, i32 0
  %322 = load i32, ptr %321, align 8, !tbaa !17
  %323 = icmp uge i32 %319, %322
  br i1 %323, label %324, label %328

324:                                              ; preds = %318
  %325 = load ptr, ptr @stderr, align 8, !tbaa !9
  %326 = load i32, ptr %9, align 4, !tbaa !5
  %327 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %325, ptr noundef @.str.10, i32 noundef %326) #6
  call void @exit(i32 noundef 1) #7
  unreachable

328:                                              ; preds = %318
  br label %354

329:                                              ; preds = %287
  br label %330

330:                                              ; preds = %351, %329
  %331 = call i32 @rand() #6
  %332 = load ptr, ptr %13, align 8, !tbaa !9
  %333 = getelementptr inbounds %struct.graph_s, ptr %332, i32 0, i32 0
  %334 = load i32, ptr %333, align 8, !tbaa !17
  %335 = urem i32 %331, %334
  store i32 %335, ptr %8, align 4, !tbaa !5
  %336 = call i32 @rand() #6
  %337 = load ptr, ptr %13, align 8, !tbaa !9
  %338 = getelementptr inbounds %struct.graph_s, ptr %337, i32 0, i32 0
  %339 = load i32, ptr %338, align 8, !tbaa !17
  %340 = urem i32 %336, %339
  store i32 %340, ptr %9, align 4, !tbaa !5
  br label %341

341:                                              ; preds = %330
  %342 = load i32, ptr %8, align 4, !tbaa !5
  %343 = load i32, ptr %9, align 4, !tbaa !5
  %344 = icmp eq i32 %342, %343
  br i1 %344, label %351, label %345

345:                                              ; preds = %341
  %346 = load ptr, ptr %13, align 8, !tbaa !9
  %347 = load i32, ptr %8, align 4, !tbaa !5
  %348 = load i32, ptr %9, align 4, !tbaa !5
  %349 = call i32 @isArc(ptr noundef %346, i32 noundef %347, i32 noundef %348)
  %350 = icmp ne i32 %349, 0
  br label %351

351:                                              ; preds = %345, %341
  %352 = phi i1 [ true, %341 ], [ %350, %345 ]
  br i1 %352, label %330, label %353, !llvm.loop !19

353:                                              ; preds = %351
  br label %354

354:                                              ; preds = %353, %328
  %355 = load i32, ptr %8, align 4, !tbaa !5
  %356 = load i32, ptr %9, align 4, !tbaa !5
  %357 = icmp eq i32 %355, %356
  br i1 %357, label %364, label %358

358:                                              ; preds = %354
  %359 = load ptr, ptr %13, align 8, !tbaa !9
  %360 = load i32, ptr %8, align 4, !tbaa !5
  %361 = load i32, ptr %9, align 4, !tbaa !5
  %362 = call i32 @isArc(ptr noundef %359, i32 noundef %360, i32 noundef %361)
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %364, label %365

364:                                              ; preds = %358, %354
  br label %286

365:                                              ; preds = %358
  %366 = load ptr, ptr %13, align 8, !tbaa !9
  %367 = load i32, ptr %8, align 4, !tbaa !5
  %368 = load i32, ptr %9, align 4, !tbaa !5
  call void @insertArc(ptr noundef %366, i32 noundef %367, i32 noundef %368)
  %369 = load i32, ptr %8, align 4, !tbaa !5
  %370 = load i32, ptr %9, align 4, !tbaa !5
  %371 = load ptr, ptr %13, align 8, !tbaa !9
  %372 = getelementptr inbounds %struct.graph_s, ptr %371, i32 0, i32 3
  %373 = load i32, ptr %372, align 4, !tbaa !21
  %374 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %369, i32 noundef %370, i32 noundef %373)
  %375 = load i32, ptr %14, align 4, !tbaa !5
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %14, align 4, !tbaa !5
  %377 = load i32, ptr %15, align 4, !tbaa !5
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %383, label %379

379:                                              ; preds = %365
  %380 = load i32, ptr %14, align 4, !tbaa !5
  %381 = icmp sge i32 %380, 1000
  br i1 %381, label %382, label %383

382:                                              ; preds = %379
  br label %384

383:                                              ; preds = %379, %365
  br label %286

384:                                              ; preds = %382, %300, %294
  %385 = load i32, ptr %15, align 4, !tbaa !5
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %387, label %401

387:                                              ; preds = %384
  %388 = load ptr, ptr %17, align 8, !tbaa !9
  %389 = call i32 @fclose(ptr noundef %388)
  %390 = load ptr, ptr %16, align 8, !tbaa !9
  %391 = call noalias ptr @fopen(ptr noundef %390, ptr noundef @.str.1)
  store ptr %391, ptr %17, align 8, !tbaa !9
  %392 = icmp ne ptr %391, null
  br i1 %392, label %400, label %393

393:                                              ; preds = %387
  %394 = load ptr, ptr @stderr, align 8, !tbaa !9
  %395 = load ptr, ptr %16, align 8, !tbaa !9
  %396 = call ptr @__errno_location() #8
  %397 = load i32, ptr %396, align 4, !tbaa !5
  %398 = call ptr @strerror(i32 noundef %397) #6
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %394, ptr noundef @.str.2, ptr noundef %395, ptr noundef %398) #6
  call void @exit(i32 noundef 1) #7
  unreachable

400:                                              ; preds = %387
  br label %401

401:                                              ; preds = %400, %384
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %403

403:                                              ; preds = %501, %482, %401
  br label %404

404:                                              ; preds = %403
  %405 = load i32, ptr %15, align 4, !tbaa !5
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %407, label %446

407:                                              ; preds = %404
  %408 = load ptr, ptr %17, align 8, !tbaa !9
  %409 = call i32 @feof(ptr noundef %408) #6
  %410 = icmp ne i32 %409, 0
  br i1 %410, label %411, label %412

411:                                              ; preds = %407
  br label %502

412:                                              ; preds = %407
  %413 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %414 = load ptr, ptr %17, align 8, !tbaa !9
  %415 = call ptr @fgets(ptr noundef %413, i32 noundef 1023, ptr noundef %414)
  %416 = icmp ne ptr %415, null
  br i1 %416, label %418, label %417

417:                                              ; preds = %412
  br label %502

418:                                              ; preds = %412
  %419 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %420 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %419, ptr noundef @.str.7, ptr noundef %8, ptr noundef %9) #6
  %421 = icmp ne i32 %420, 2
  br i1 %421, label %422, label %425

422:                                              ; preds = %418
  %423 = load ptr, ptr @stderr, align 8, !tbaa !9
  %424 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %423, ptr noundef @.str.8) #6
  call void @exit(i32 noundef 1) #7
  unreachable

425:                                              ; preds = %418
  %426 = load i32, ptr %8, align 4, !tbaa !5
  %427 = load ptr, ptr %13, align 8, !tbaa !9
  %428 = getelementptr inbounds %struct.graph_s, ptr %427, i32 0, i32 0
  %429 = load i32, ptr %428, align 8, !tbaa !17
  %430 = icmp uge i32 %426, %429
  br i1 %430, label %431, label %435

431:                                              ; preds = %425
  %432 = load ptr, ptr @stderr, align 8, !tbaa !9
  %433 = load i32, ptr %8, align 4, !tbaa !5
  %434 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %432, ptr noundef @.str.9, i32 noundef %433) #6
  call void @exit(i32 noundef 1) #7
  unreachable

435:                                              ; preds = %425
  %436 = load i32, ptr %9, align 4, !tbaa !5
  %437 = load ptr, ptr %13, align 8, !tbaa !9
  %438 = getelementptr inbounds %struct.graph_s, ptr %437, i32 0, i32 0
  %439 = load i32, ptr %438, align 8, !tbaa !17
  %440 = icmp uge i32 %436, %439
  br i1 %440, label %441, label %445

441:                                              ; preds = %435
  %442 = load ptr, ptr @stderr, align 8, !tbaa !9
  %443 = load i32, ptr %9, align 4, !tbaa !5
  %444 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %442, ptr noundef @.str.10, i32 noundef %443) #6
  call void @exit(i32 noundef 1) #7
  unreachable

445:                                              ; preds = %435
  br label %472

446:                                              ; preds = %404
  br label %447

447:                                              ; preds = %469, %446
  %448 = call i32 @rand() #6
  %449 = load ptr, ptr %13, align 8, !tbaa !9
  %450 = getelementptr inbounds %struct.graph_s, ptr %449, i32 0, i32 0
  %451 = load i32, ptr %450, align 8, !tbaa !17
  %452 = urem i32 %448, %451
  store i32 %452, ptr %8, align 4, !tbaa !5
  %453 = call i32 @rand() #6
  %454 = load ptr, ptr %13, align 8, !tbaa !9
  %455 = getelementptr inbounds %struct.graph_s, ptr %454, i32 0, i32 0
  %456 = load i32, ptr %455, align 8, !tbaa !17
  %457 = urem i32 %453, %456
  store i32 %457, ptr %9, align 4, !tbaa !5
  br label %458

458:                                              ; preds = %447
  %459 = load i32, ptr %8, align 4, !tbaa !5
  %460 = load i32, ptr %9, align 4, !tbaa !5
  %461 = icmp eq i32 %459, %460
  br i1 %461, label %469, label %462

462:                                              ; preds = %458
  %463 = load ptr, ptr %13, align 8, !tbaa !9
  %464 = load i32, ptr %8, align 4, !tbaa !5
  %465 = load i32, ptr %9, align 4, !tbaa !5
  %466 = call i32 @isArc(ptr noundef %463, i32 noundef %464, i32 noundef %465)
  %467 = icmp ne i32 %466, 0
  %468 = xor i1 %467, true
  br label %469

469:                                              ; preds = %462, %458
  %470 = phi i1 [ true, %458 ], [ %468, %462 ]
  br i1 %470, label %447, label %471, !llvm.loop !22

471:                                              ; preds = %469
  br label %472

472:                                              ; preds = %471, %445
  %473 = load i32, ptr %8, align 4, !tbaa !5
  %474 = load i32, ptr %9, align 4, !tbaa !5
  %475 = icmp eq i32 %473, %474
  br i1 %475, label %482, label %476

476:                                              ; preds = %472
  %477 = load ptr, ptr %13, align 8, !tbaa !9
  %478 = load i32, ptr %8, align 4, !tbaa !5
  %479 = load i32, ptr %9, align 4, !tbaa !5
  %480 = call i32 @isArc(ptr noundef %477, i32 noundef %478, i32 noundef %479)
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %483, label %482

482:                                              ; preds = %476, %472
  br label %403

483:                                              ; preds = %476
  %484 = load ptr, ptr %13, align 8, !tbaa !9
  %485 = load i32, ptr %8, align 4, !tbaa !5
  %486 = load i32, ptr %9, align 4, !tbaa !5
  call void @removeArc(ptr noundef %484, i32 noundef %485, i32 noundef %486)
  %487 = load i32, ptr %8, align 4, !tbaa !5
  %488 = load i32, ptr %9, align 4, !tbaa !5
  %489 = load ptr, ptr %13, align 8, !tbaa !9
  %490 = getelementptr inbounds %struct.graph_s, ptr %489, i32 0, i32 3
  %491 = load i32, ptr %490, align 4, !tbaa !21
  %492 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %487, i32 noundef %488, i32 noundef %491)
  %493 = load i32, ptr %14, align 4, !tbaa !5
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %14, align 4, !tbaa !5
  %495 = load i32, ptr %15, align 4, !tbaa !5
  %496 = icmp ne i32 %495, 0
  br i1 %496, label %501, label %497

497:                                              ; preds = %483
  %498 = load i32, ptr %14, align 4, !tbaa !5
  %499 = icmp sge i32 %498, 1000
  br i1 %499, label %500, label %501

500:                                              ; preds = %497
  br label %502

501:                                              ; preds = %497, %483
  br label %403

502:                                              ; preds = %500, %417, %411
  %503 = load i32, ptr %15, align 4, !tbaa !5
  %504 = icmp ne i32 %503, 0
  br i1 %504, label %505, label %508

505:                                              ; preds = %502
  %506 = load ptr, ptr %17, align 8, !tbaa !9
  %507 = call i32 @fclose(ptr noundef %506)
  br label %508

508:                                              ; preds = %505, %502
  %509 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free_graph(ptr noundef %509)
  call void @exit(i32 noundef 0) #7
  unreachable

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

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

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

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

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

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

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

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

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

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

declare i32 @get_num_vertices_from_arclist_file(ptr noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #4

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

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

declare void @free_graph(ptr noundef) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(none) }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.timeval = type { i64, i64 }

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

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

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

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

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

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

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

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

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

.outer160:                                        ; preds = %.split.us, %38
  %.096.ph = phi i32 [ %137, %.split.us ], [ 0, %38 ]
  br i1 %.not128, label %.outer160.split.us, label %.outer160.split

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

63:                                               ; preds = %.outer160.split.us
  %64 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %61, i32 noundef %60) #7
  %.not134.us = icmp eq i32 %64, 0
  br i1 %.not134.us, label %.split.us, label %.outer160.split.us.backedge

.outer160.split.us.backedge:                      ; preds = %63, %.outer160.split.us
  br label %.outer160.split.us

.outer160.split:                                  ; preds = %.outer160
  %65 = call i32 @feof(ptr noundef %.0) #7
  %.not129169 = icmp eq i32 %65, 0
  br i1 %.not129169, label %.lr.ph, label %.outer160.split._crit_edge

.lr.ph:                                           ; preds = %.outer160.split, %.backedge
  %66 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.0)
  %.not130 = icmp eq ptr %66, null
  br i1 %.not130, label %.outer160.split._crit_edge, label %67

67:                                               ; preds = %.lr.ph
  %68 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not131 = icmp eq i32 %68, 2
  br i1 %.not131, label %72, label %69

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

72:                                               ; preds = %67
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = load i32, ptr %39, align 8, !tbaa !15
  %.not132 = icmp ult i32 %73, %74
  br i1 %.not132, label %78, label %75

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

78:                                               ; preds = %72
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %.not133 = icmp ult i32 %79, %74
  br i1 %.not133, label %83, label %80

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

83:                                               ; preds = %78
  %84 = icmp eq i32 %73, %79
  br i1 %84, label %.backedge, label %86

.backedge:                                        ; preds = %83, %86
  %85 = call i32 @feof(ptr noundef %.0) #7
  %.not129 = icmp eq i32 %85, 0
  br i1 %.not129, label %.lr.ph, label %.outer160.split._crit_edge

86:                                               ; preds = %83
  %87 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %73, i32 noundef %79) #7
  %.not134 = icmp eq i32 %87, 0
  br i1 %.not134, label %.split.us, label %.backedge

.split.us:                                        ; preds = %86, %63
  %88 = load i32, ptr %4, align 4, !tbaa !9
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = call double @changeAltOutStars(ptr noundef nonnull %39, i32 noundef %88, i32 noundef %89, double noundef 2.000000e+00) #7
  %91 = load i32, ptr %4, align 4, !tbaa !9
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = call double @changeAltInStars(ptr noundef nonnull %39, i32 noundef %91, i32 noundef %92, double noundef 2.000000e+00) #7
  %94 = load i32, ptr %4, align 4, !tbaa !9
  %95 = load i32, ptr %5, align 4, !tbaa !9
  %96 = call double @changeAltKTrianglesT(ptr noundef nonnull %39, i32 noundef %94, i32 noundef %95, double noundef 2.000000e+00) #7
  %97 = load i32, ptr %4, align 4, !tbaa !9
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = call double @changeAltTwoPathsTD(ptr noundef nonnull %39, i32 noundef %97, i32 noundef %98, double noundef 2.000000e+00) #7
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = call double @changeAltKTrianglesC(ptr noundef nonnull %39, i32 noundef %100, i32 noundef %101, double noundef 2.000000e+00) #7
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = call double @changeAltKTrianglesU(ptr noundef nonnull %39, i32 noundef %103, i32 noundef %104, double noundef 2.000000e+00) #7
  %106 = load i32, ptr %4, align 4, !tbaa !9
  %107 = load i32, ptr %5, align 4, !tbaa !9
  %108 = call double @changeAltKTrianglesD(ptr noundef nonnull %39, i32 noundef %106, i32 noundef %107, double noundef 2.000000e+00) #7
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = call double @changeAltTwoPathsU(ptr noundef nonnull %39, i32 noundef %109, i32 noundef %110, double noundef 2.000000e+00) #7
  %112 = load i32, ptr %4, align 4, !tbaa !9
  %113 = load i32, ptr %5, align 4, !tbaa !9
  %114 = call double @changeSource(ptr noundef nonnull %39, i32 noundef %112, i32 noundef %113, double noundef 2.000000e+00) #7
  %115 = load i32, ptr %4, align 4, !tbaa !9
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = call double @changeSink(ptr noundef nonnull %39, i32 noundef %115, i32 noundef %116, double noundef 2.000000e+00) #7
  %118 = load i32, ptr %4, align 4, !tbaa !9
  %119 = load i32, ptr %5, align 4, !tbaa !9
  %120 = call double @changeIsolates(ptr noundef nonnull %39, i32 noundef %118, i32 noundef %119, double noundef 2.000000e+00) #7
  %121 = load i32, ptr %4, align 4, !tbaa !9
  %122 = load i32, ptr %5, align 4, !tbaa !9
  %123 = call double @changeTwoPath(ptr noundef nonnull %39, i32 noundef %121, i32 noundef %122, double noundef 2.000000e+00) #7
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = call double @changeCyclicTriad(ptr noundef nonnull %39, i32 noundef %124, i32 noundef %125, double noundef 2.000000e+00) #7
  %127 = load i32, ptr %4, align 4, !tbaa !9
  %128 = load i32, ptr %5, align 4, !tbaa !9
  %129 = call double @changeTransitiveTriad(ptr noundef nonnull %39, i32 noundef %127, i32 noundef %128, double noundef 2.000000e+00) #7
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = call double @changeInTwoStars(ptr noundef nonnull %39, i32 noundef %130, i32 noundef %131, double noundef 2.000000e+00) #7
  %133 = load i32, ptr %4, align 4, !tbaa !9
  %134 = load i32, ptr %5, align 4, !tbaa !9
  %135 = call double @changeOutTwoStars(ptr noundef nonnull %39, i32 noundef %133, i32 noundef %134, double noundef 2.000000e+00) #7
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %88, i32 noundef %89, double noundef %90, double noundef %93, double noundef %96, double noundef %99, double noundef %102, double noundef %105, double noundef %108, double noundef %111, double noundef %114, double noundef %117, double noundef %120, double noundef %123, double noundef %126, double noundef %129, double noundef %132, double noundef %135)
  %137 = add nuw nsw i32 %.096.ph, 1
  %138 = icmp ugt i32 %.096.ph, 998
  %or.cond3 = select i1 %.not128, i1 %138, i1 false
  br i1 %or.cond3, label %.loopexit159, label %.outer160

.outer160.split._crit_edge:                       ; preds = %.outer160.split, %.backedge, %.lr.ph
  %139 = call i32 @fclose(ptr noundef %.0)
  %140 = call noalias ptr @fopen(ptr noundef %.094, ptr noundef nonnull @.str.1)
  %.not135 = icmp eq ptr %140, null
  br i1 %.not135, label %141, label %.loopexit159

141:                                              ; preds = %.outer160.split._crit_edge
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = tail call ptr @__errno_location() #10
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = call ptr @strerror(i32 noundef %144) #7
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.2, ptr noundef %.094, ptr noundef %145) #8
  call void @exit(i32 noundef 1) #9
  unreachable

.loopexit159:                                     ; preds = %.split.us, %.outer160.split._crit_edge
  %.1 = phi ptr [ %140, %.outer160.split._crit_edge ], [ %.0, %.split.us ]
  %147 = call i32 @gettimeofday(ptr noundef nonnull %7, ptr noundef null) #7
  %148 = call i32 @timeval_subtract(ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef nonnull %6) #7
  %149 = load i64, ptr %8, align 8, !tbaa !11
  %150 = mul nsw i64 %149, 1000
  %151 = load i64, ptr %44, align 8, !tbaa !14
  %152 = sdiv i64 %151, 1000
  %153 = add nsw i64 %152, %150
  %154 = trunc i64 %153 to i32
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = sitofp i32 %154 to double
  %157 = fdiv double %156, 1.000000e+03
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.12, double noundef %157) #8
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %160 = getelementptr inbounds i8, ptr %39, i64 12
  br i1 %.not128, label %.outer158.us, label %.outer158.preheader

.outer158.preheader:                              ; preds = %.loopexit159
  %161 = call i32 @feof(ptr noundef %.1) #7
  %.not137173243 = icmp eq i32 %161, 0
  br i1 %.not137173243, label %.lr.ph174, label %.outer158.split._crit_edge

.outer158.us:                                     ; preds = %.loopexit159, %.split172.us.us
  %.197.ph.us = phi i32 [ %183, %.split172.us.us ], [ 0, %.loopexit159 ]
  br label %.critedge.us.us

.critedge.us.us:                                  ; preds = %.critedge.us.us.backedge, %.outer158.us
  %162 = call i32 @rand() #7
  %163 = load i32, ptr %39, align 8, !tbaa !15
  %164 = urem i32 %162, %163
  store i32 %164, ptr %4, align 4, !tbaa !9
  %165 = call i32 @rand() #7
  %166 = load i32, ptr %39, align 8, !tbaa !15
  %167 = urem i32 %165, %166
  store i32 %167, ptr %5, align 4, !tbaa !9
  %168 = load i32, ptr %4, align 4, !tbaa !9
  %169 = icmp eq i32 %168, %167
  br i1 %169, label %.critedge.us.us.backedge, label %170

170:                                              ; preds = %.critedge.us.us
  %171 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %168, i32 noundef %167) #7
  %.not136.us.us = icmp eq i32 %171, 0
  br i1 %.not136.us.us, label %.loopexit156.us.us, label %.critedge.us.us.backedge

172:                                              ; preds = %.loopexit156.us.us
  %173 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %174, i32 noundef %175) #7
  %.not142.us.us = icmp eq i32 %173, 0
  br i1 %.not142.us.us, label %.split172.us.us, label %.critedge.us.us.backedge

.loopexit156.us.us:                               ; preds = %170
  %174 = load i32, ptr %4, align 4, !tbaa !9
  %175 = load i32, ptr %5, align 4, !tbaa !9
  %176 = icmp eq i32 %174, %175
  br i1 %176, label %.critedge.us.us.backedge, label %172

.critedge.us.us.backedge:                         ; preds = %.loopexit156.us.us, %172, %170, %.critedge.us.us
  br label %.critedge.us.us, !llvm.loop !17

.split172.us.us:                                  ; preds = %172
  %177 = load i32, ptr %4, align 4, !tbaa !9
  %178 = load i32, ptr %5, align 4, !tbaa !9
  call void @insertArc(ptr noundef nonnull %39, i32 noundef %177, i32 noundef %178) #7
  %179 = load i32, ptr %4, align 4, !tbaa !9
  %180 = load i32, ptr %5, align 4, !tbaa !9
  %181 = load i32, ptr %160, align 4, !tbaa !19
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %179, i32 noundef %180, i32 noundef %181)
  %183 = add nuw nsw i32 %.197.ph.us, 1
  %exitcond = icmp eq i32 %183, 1000
  br i1 %exitcond, label %.loopexit157, label %.outer158.us

.lr.ph174:                                        ; preds = %.outer158.preheader, %.lr.ph174.backedge
  %184 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.1)
  %.not138 = icmp eq ptr %184, null
  br i1 %.not138, label %.outer158.split._crit_edge, label %185

185:                                              ; preds = %.lr.ph174
  %186 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not139 = icmp eq i32 %186, 2
  br i1 %.not139, label %190, label %187

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

190:                                              ; preds = %185
  %191 = load i32, ptr %4, align 4, !tbaa !9
  %192 = load i32, ptr %39, align 8, !tbaa !15
  %.not140 = icmp ult i32 %191, %192
  br i1 %.not140, label %196, label %193

193:                                              ; preds = %190
  %194 = load ptr, ptr @stderr, align 8, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %194, ptr noundef nonnull @.str.9, i32 noundef %191) #8
  call void @exit(i32 noundef 1) #9
  unreachable

196:                                              ; preds = %190
  %197 = load i32, ptr %5, align 4, !tbaa !9
  %.not141 = icmp ult i32 %197, %192
  br i1 %.not141, label %201, label %198

198:                                              ; preds = %196
  %199 = load ptr, ptr @stderr, align 8, !tbaa !5
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef nonnull @.str.10, i32 noundef %197) #8
  call void @exit(i32 noundef 1) #9
  unreachable

201:                                              ; preds = %196
  %202 = icmp eq i32 %191, %197
  br i1 %202, label %205, label %203

203:                                              ; preds = %201
  %204 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %191, i32 noundef %197) #7
  %.not142 = icmp eq i32 %204, 0
  br i1 %.not142, label %.split172, label %205

205:                                              ; preds = %203, %201
  %206 = call i32 @feof(ptr noundef %.1) #7
  %.not137 = icmp eq i32 %206, 0
  br i1 %.not137, label %.lr.ph174.backedge, label %.outer158.split._crit_edge

.lr.ph174.backedge:                               ; preds = %205, %.split172
  br label %.lr.ph174

.split172:                                        ; preds = %203
  %207 = load i32, ptr %4, align 4, !tbaa !9
  %208 = load i32, ptr %5, align 4, !tbaa !9
  call void @insertArc(ptr noundef nonnull %39, i32 noundef %207, i32 noundef %208) #7
  %209 = load i32, ptr %4, align 4, !tbaa !9
  %210 = load i32, ptr %5, align 4, !tbaa !9
  %211 = load i32, ptr %160, align 4, !tbaa !19
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %209, i32 noundef %210, i32 noundef %211)
  %213 = call i32 @feof(ptr noundef %.1) #7
  %.not137173 = icmp eq i32 %213, 0
  br i1 %.not137173, label %.lr.ph174.backedge, label %.outer158.split._crit_edge

.outer158.split._crit_edge:                       ; preds = %.split172, %205, %.lr.ph174, %.outer158.preheader
  %214 = call i32 @fclose(ptr noundef %.1)
  %215 = call noalias ptr @fopen(ptr noundef %.094, ptr noundef nonnull @.str.1)
  %.not143 = icmp eq ptr %215, null
  br i1 %.not143, label %216, label %.loopexit157

216:                                              ; preds = %.outer158.split._crit_edge
  %217 = load ptr, ptr @stderr, align 8, !tbaa !5
  %218 = tail call ptr @__errno_location() #10
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = call ptr @strerror(i32 noundef %219) #7
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef nonnull @.str.2, ptr noundef %.094, ptr noundef %220) #8
  call void @exit(i32 noundef 1) #9
  unreachable

.loopexit157:                                     ; preds = %.split172.us.us, %.outer158.split._crit_edge
  %.2 = phi ptr [ %215, %.outer158.split._crit_edge ], [ %.1, %.split172.us.us ]
  %222 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br i1 %.not128, label %.outer.us, label %.outer.preheader

.outer.preheader:                                 ; preds = %.loopexit157
  %223 = call i32 @feof(ptr noundef %.2) #7
  %.not145180244 = icmp eq i32 %223, 0
  br i1 %.not145180244, label %.lr.ph181, label %.outer.split._crit_edge

.outer.us:                                        ; preds = %.loopexit157, %.split179.us.us
  %.298.ph.us = phi i32 [ %245, %.split179.us.us ], [ 0, %.loopexit157 ]
  br label %.critedge7.us.us

.critedge7.us.us:                                 ; preds = %.critedge7.us.us.backedge, %.outer.us
  %224 = call i32 @rand() #7
  %225 = load i32, ptr %39, align 8, !tbaa !15
  %226 = urem i32 %224, %225
  store i32 %226, ptr %4, align 4, !tbaa !9
  %227 = call i32 @rand() #7
  %228 = load i32, ptr %39, align 8, !tbaa !15
  %229 = urem i32 %227, %228
  store i32 %229, ptr %5, align 4, !tbaa !9
  %230 = load i32, ptr %4, align 4, !tbaa !9
  %231 = icmp eq i32 %230, %229
  br i1 %231, label %.critedge7.us.us.backedge, label %232

232:                                              ; preds = %.critedge7.us.us
  %233 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %230, i32 noundef %229) #7
  %.not144.us.us = icmp eq i32 %233, 0
  br i1 %.not144.us.us, label %.critedge7.us.us.backedge, label %.loopexit.us.us

234:                                              ; preds = %.loopexit.us.us
  %235 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %236, i32 noundef %237) #7
  %.not150.us.us = icmp eq i32 %235, 0
  br i1 %.not150.us.us, label %.critedge7.us.us.backedge, label %.split179.us.us

.loopexit.us.us:                                  ; preds = %232
  %236 = load i32, ptr %4, align 4, !tbaa !9
  %237 = load i32, ptr %5, align 4, !tbaa !9
  %238 = icmp eq i32 %236, %237
  br i1 %238, label %.critedge7.us.us.backedge, label %234

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

.split179.us.us:                                  ; preds = %234
  %239 = load i32, ptr %4, align 4, !tbaa !9
  %240 = load i32, ptr %5, align 4, !tbaa !9
  call void @removeArc(ptr noundef nonnull %39, i32 noundef %239, i32 noundef %240) #7
  %241 = load i32, ptr %4, align 4, !tbaa !9
  %242 = load i32, ptr %5, align 4, !tbaa !9
  %243 = load i32, ptr %160, align 4, !tbaa !19
  %244 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %241, i32 noundef %242, i32 noundef %243)
  %245 = add nuw nsw i32 %.298.ph.us, 1
  %exitcond203 = icmp eq i32 %245, 1000
  br i1 %exitcond203, label %.loopexit155, label %.outer.us

.lr.ph181:                                        ; preds = %.outer.preheader, %.lr.ph181.backedge
  %246 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef %.2)
  %.not146 = icmp eq ptr %246, null
  br i1 %.not146, label %.outer.split._crit_edge, label %247

247:                                              ; preds = %.lr.ph181
  %248 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not147 = icmp eq i32 %248, 2
  br i1 %.not147, label %252, label %249

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

252:                                              ; preds = %247
  %253 = load i32, ptr %4, align 4, !tbaa !9
  %254 = load i32, ptr %39, align 8, !tbaa !15
  %.not148 = icmp ult i32 %253, %254
  br i1 %.not148, label %258, label %255

255:                                              ; preds = %252
  %256 = load ptr, ptr @stderr, align 8, !tbaa !5
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef nonnull @.str.9, i32 noundef %253) #8
  call void @exit(i32 noundef 1) #9
  unreachable

258:                                              ; preds = %252
  %259 = load i32, ptr %5, align 4, !tbaa !9
  %.not149 = icmp ult i32 %259, %254
  br i1 %.not149, label %263, label %260

260:                                              ; preds = %258
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef nonnull @.str.10, i32 noundef %259) #8
  call void @exit(i32 noundef 1) #9
  unreachable

263:                                              ; preds = %258
  %264 = icmp eq i32 %253, %259
  br i1 %264, label %267, label %265

265:                                              ; preds = %263
  %266 = call i32 @isArc(ptr noundef nonnull %39, i32 noundef %253, i32 noundef %259) #7
  %.not150 = icmp eq i32 %266, 0
  br i1 %.not150, label %267, label %.split179

267:                                              ; preds = %265, %263
  %268 = call i32 @feof(ptr noundef %.2) #7
  %.not145 = icmp eq i32 %268, 0
  br i1 %.not145, label %.lr.ph181.backedge, label %.outer.split._crit_edge

.lr.ph181.backedge:                               ; preds = %267, %.split179
  br label %.lr.ph181

.split179:                                        ; preds = %265
  %269 = load i32, ptr %4, align 4, !tbaa !9
  %270 = load i32, ptr %5, align 4, !tbaa !9
  call void @removeArc(ptr noundef nonnull %39, i32 noundef %269, i32 noundef %270) #7
  %271 = load i32, ptr %4, align 4, !tbaa !9
  %272 = load i32, ptr %5, align 4, !tbaa !9
  %273 = load i32, ptr %160, align 4, !tbaa !19
  %274 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %271, i32 noundef %272, i32 noundef %273)
  %275 = call i32 @feof(ptr noundef %.2) #7
  %.not145180 = icmp eq i32 %275, 0
  br i1 %.not145180, label %.lr.ph181.backedge, label %.outer.split._crit_edge

.outer.split._crit_edge:                          ; preds = %.split179, %267, %.lr.ph181, %.outer.preheader
  %276 = call i32 @fclose(ptr noundef %.2)
  br label %.loopexit155

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

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

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

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

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

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

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

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

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

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

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

declare i32 @get_num_vertices_from_arclist_file(ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @free_graph(ptr noundef) local_unnamed_addr #6

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(none) }

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

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


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