; LLVM IR from stivalaa/EstimNetDirected :: src (changeStatisticsUndirected)

; 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.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__.changePowerFourCycles = external hidden unnamed_addr constant [64 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @num_four_cycles_node(ptr noundef, i32 noundef) #2

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

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

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local double @changePowerFourCycles(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3) #2 {
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %19 = load double, ptr %9, align 8, !tbaa !11
  %20 = fdiv double 1.000000e+00, %19
  store double %20, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = call i32 @isEdge(ptr noundef %21, i32 noundef %22, i32 noundef %23)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %27, label %26

26:                                               ; preds = %4
  br label %28

27:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 463, ptr noundef @__PRETTY_FUNCTION__.changePowerFourCycles) #6
  unreachable

28:                                               ; preds = %26
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  store double 0.000000e+00, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %256

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = call i32 @num_four_cycles_node(ptr noundef %34, i32 noundef %35)
  %37 = zext i32 %36 to i64
  store i64 %37, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = call i32 @num_four_cycles_node(ptr noundef %38, i32 noundef %39)
  %41 = zext i32 %40 to i64
  store i64 %41, ptr %18, align 8, !tbaa !13
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = load double, ptr %9, align 8, !tbaa !11
  %46 = call double @changeFourCycles(ptr noundef %42, i32 noundef %43, i32 noundef %44, double noundef %45)
  %47 = fptoui double %46 to i64
  store i64 %47, ptr %12, align 8, !tbaa !13
  %48 = load i64, ptr %17, align 8, !tbaa !13
  %49 = load i64, ptr %12, align 8, !tbaa !13
  %50 = add i64 %48, %49
  %51 = uitofp i64 %50 to double
  %52 = load double, ptr %14, align 8, !tbaa !11
  %53 = call double @pow(double noundef %51, double noundef %52) #5
  %54 = load i64, ptr %17, align 8, !tbaa !13
  %55 = uitofp i64 %54 to double
  %56 = load double, ptr %14, align 8, !tbaa !11
  %57 = call double @pow(double noundef %55, double noundef %56) #5
  %58 = fsub double %53, %57
  %59 = load i64, ptr %18, align 8, !tbaa !13
  %60 = load i64, ptr %12, align 8, !tbaa !13
  %61 = add i64 %59, %60
  %62 = uitofp i64 %61 to double
  %63 = load double, ptr %14, align 8, !tbaa !11
  %64 = call double @pow(double noundef %62, double noundef %63) #5
  %65 = fadd double %58, %64
  %66 = load i64, ptr %18, align 8, !tbaa !13
  %67 = uitofp i64 %66 to double
  %68 = load double, ptr %14, align 8, !tbaa !11
  %69 = call double @pow(double noundef %67, double noundef %68) #5
  %70 = fsub double %65, %69
  store double %70, ptr %15, align 8, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %166, %33
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graph_s, ptr %73, i32 0, i32 10
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = icmp ult i32 %72, %79
  br i1 %80, label %81, label %169

81:                                               ; preds = %71
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.graph_s, ptr %82, i32 0, i32 11
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %88, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = icmp ne i32 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %81
  br label %98

97:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 481, ptr noundef @__PRETTY_FUNCTION__.changePowerFourCycles) #6
  unreachable

98:                                               ; preds = %96
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = call i32 @num_four_cycles_node(ptr noundef %99, i32 noundef %100)
  %102 = zext i32 %101 to i64
  store i64 %102, ptr %13, align 8, !tbaa !13
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.graph_s, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !18
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %125

107:                                              ; preds = %98
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = call i32 @bipartite_node_mode(ptr noundef %108, i32 noundef %109)
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %107
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = call i32 @twoPaths(ptr noundef %113, i32 noundef %114, i32 noundef %115)
  %117 = zext i32 %116 to i64
  store i64 %117, ptr %12, align 8, !tbaa !13
  br label %124

118:                                              ; preds = %107
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = call i32 @twoPaths(ptr noundef %119, i32 noundef %120, i32 noundef %121)
  %123 = zext i32 %122 to i64
  store i64 %123, ptr %12, align 8, !tbaa !13
  br label %124

124:                                              ; preds = %118, %112
  br label %152

125:                                              ; preds = %98
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = call i32 @twoPaths(ptr noundef %126, i32 noundef %127, i32 noundef %128)
  %130 = zext i32 %129 to i64
  store i64 %130, ptr %12, align 8, !tbaa !13
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = call i32 @isEdge(ptr noundef %131, i32 noundef %132, i32 noundef %133)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %151

136:                                              ; preds = %125
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.graph_s, ptr %137, i32 0, i32 2
  %139 = load i32, ptr %138, align 8, !tbaa !18
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %142, label %141

141:                                              ; preds = %136
  br label %143

142:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 494, ptr noundef @__PRETTY_FUNCTION__.changePowerFourCycles) #6
  unreachable

143:                                              ; preds = %141
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = call i32 @twoPaths(ptr noundef %144, i32 noundef %145, i32 noundef %146)
  %148 = zext i32 %147 to i64
  %149 = load i64, ptr %12, align 8, !tbaa !13
  %150 = add i64 %149, %148
  store i64 %150, ptr %12, align 8, !tbaa !13
  br label %151

151:                                              ; preds = %143, %125
  br label %152

152:                                              ; preds = %151, %124
  %153 = load i64, ptr %13, align 8, !tbaa !13
  %154 = load i64, ptr %12, align 8, !tbaa !13
  %155 = add i64 %153, %154
  %156 = uitofp i64 %155 to double
  %157 = load double, ptr %14, align 8, !tbaa !11
  %158 = call double @pow(double noundef %156, double noundef %157) #5
  %159 = load i64, ptr %13, align 8, !tbaa !13
  %160 = uitofp i64 %159 to double
  %161 = load double, ptr %14, align 8, !tbaa !11
  %162 = call double @pow(double noundef %160, double noundef %161) #5
  %163 = fsub double %158, %162
  %164 = load double, ptr %15, align 8, !tbaa !11
  %165 = fadd double %164, %163
  store double %165, ptr %15, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %152
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = add i32 %167, 1
  store i32 %168, ptr %11, align 4, !tbaa !9
  br label %71, !llvm.loop !19

169:                                              ; preds = %71
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %251, %169
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.graph_s, ptr %172, i32 0, i32 10
  %174 = load ptr, ptr %173, align 8, !tbaa !15
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %174, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = icmp ult i32 %171, %178
  br i1 %179, label %180, label %254

180:                                              ; preds = %170
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.graph_s, ptr %181, i32 0, i32 11
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !9
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  %194 = icmp ne i32 %192, %193
  br i1 %194, label %195, label %196

195:                                              ; preds = %180
  br label %197

196:                                              ; preds = %180
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 504, ptr noundef @__PRETTY_FUNCTION__.changePowerFourCycles) #6
  unreachable

197:                                              ; preds = %195
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = call i32 @isEdge(ptr noundef %198, i32 noundef %199, i32 noundef %200)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %250, label %203

203:                                              ; preds = %197
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = call i32 @num_four_cycles_node(ptr noundef %204, i32 noundef %205)
  %207 = zext i32 %206 to i64
  store i64 %207, ptr %13, align 8, !tbaa !13
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.graph_s, ptr %208, i32 0, i32 2
  %210 = load i32, ptr %209, align 8, !tbaa !18
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %230

212:                                              ; preds = %203
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = call i32 @bipartite_node_mode(ptr noundef %213, i32 noundef %214)
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %223

217:                                              ; preds = %212
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = load i32, ptr %7, align 4, !tbaa !9
  %221 = call i32 @twoPaths(ptr noundef %218, i32 noundef %219, i32 noundef %220)
  %222 = zext i32 %221 to i64
  store i64 %222, ptr %12, align 8, !tbaa !13
  br label %229

223:                                              ; preds = %212
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = load i32, ptr %10, align 4, !tbaa !9
  %226 = load i32, ptr %7, align 4, !tbaa !9
  %227 = call i32 @twoPaths(ptr noundef %224, i32 noundef %225, i32 noundef %226)
  %228 = zext i32 %227 to i64
  store i64 %228, ptr %12, align 8, !tbaa !13
  br label %229

229:                                              ; preds = %223, %217
  br label %236

230:                                              ; preds = %203
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = load i32, ptr %10, align 4, !tbaa !9
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = call i32 @twoPaths(ptr noundef %231, i32 noundef %232, i32 noundef %233)
  %235 = zext i32 %234 to i64
  store i64 %235, ptr %12, align 8, !tbaa !13
  br label %236

236:                                              ; preds = %230, %229
  %237 = load i64, ptr %13, align 8, !tbaa !13
  %238 = load i64, ptr %12, align 8, !tbaa !13
  %239 = add i64 %237, %238
  %240 = uitofp i64 %239 to double
  %241 = load double, ptr %14, align 8, !tbaa !11
  %242 = call double @pow(double noundef %240, double noundef %241) #5
  %243 = load i64, ptr %13, align 8, !tbaa !13
  %244 = uitofp i64 %243 to double
  %245 = load double, ptr %14, align 8, !tbaa !11
  %246 = call double @pow(double noundef %244, double noundef %245) #5
  %247 = fsub double %242, %246
  %248 = load double, ptr %15, align 8, !tbaa !11
  %249 = fadd double %248, %247
  store double %249, ptr %15, align 8, !tbaa !11
  br label %250

250:                                              ; preds = %236, %197
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = add i32 %252, 1
  store i32 %253, ptr %11, align 4, !tbaa !9
  br label %170, !llvm.loop !21

254:                                              ; preds = %170
  %255 = load double, ptr %15, align 8, !tbaa !11
  store double %255, ptr %5, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %256

256:                                              ; preds = %254, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %257 = load double, ptr %5, align 8
  ret double %257
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 64}
!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 = !{!16, !6, i64 72}
!18 = !{!16, !10, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !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"

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__.changePowerFourCycles = external hidden unnamed_addr constant [64 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @num_four_cycles_node(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local double @changeFourCycles(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local double @changePowerFourCycles(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3) local_unnamed_addr #1 {
  %5 = fdiv double 1.000000e+00, %3
  %6 = tail call i32 @isEdge(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %8, label %7

7:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 463, ptr noundef nonnull @__PRETTY_FUNCTION__.changePowerFourCycles) #5
  unreachable

8:                                                ; preds = %4
  %9 = icmp eq i32 %1, %2
  br i1 %9, label %.loopexit, label %10

10:                                               ; preds = %8
  %11 = tail call i32 @num_four_cycles_node(ptr noundef %0, i32 noundef %1)
  %12 = zext i32 %11 to i64
  %13 = tail call i32 @num_four_cycles_node(ptr noundef %0, i32 noundef %2)
  %14 = zext i32 %13 to i64
  %15 = tail call double @changeFourCycles(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3)
  %16 = fptoui double %15 to i64
  %17 = add i64 %16, %12
  %18 = uitofp i64 %17 to double
  %19 = tail call double @pow(double noundef %18, double noundef %5) #4
  %20 = uitofp i32 %11 to double
  %21 = tail call double @pow(double noundef %20, double noundef %5) #4
  %22 = fsub double %19, %21
  %23 = add i64 %16, %14
  %24 = uitofp i64 %23 to double
  %25 = tail call double @pow(double noundef %24, double noundef %5) #4
  %26 = fadd double %22, %25
  %27 = uitofp i32 %13 to double
  %28 = tail call double @pow(double noundef %27, double noundef %5) #4
  %29 = fsub double %26, %28
  %30 = getelementptr inbounds i8, ptr %0, i64 64
  %31 = zext i32 %1 to i64
  %32 = load ptr, ptr %30, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i64 %31
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %.not121 = icmp eq i32 %34, 0
  br i1 %.not121, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %35 = getelementptr inbounds i8, ptr %0, i64 72
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  br label %43

.preheader:                                       ; preds = %69, %10
  %37 = phi ptr [ %32, %10 ], [ %77, %69 ]
  %.094.lcssa = phi double [ %29, %10 ], [ %76, %69 ]
  %38 = zext i32 %2 to i64
  %39 = getelementptr inbounds i32, ptr %37, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %.not122 = icmp eq i32 %40, 0
  br i1 %.not122, label %.loopexit, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  br label %82

43:                                               ; preds = %.lr.ph, %69
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %69 ]
  %.094116 = phi double [ %29, %.lr.ph ], [ %76, %69 ]
  %44 = load ptr, ptr %35, align 8, !tbaa !12
  %45 = getelementptr inbounds ptr, ptr %44, i64 %31
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds i32, ptr %46, i64 %indvars.iv
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %.not106 = icmp eq i32 %48, %1
  br i1 %.not106, label %49, label %50

49:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 481, ptr noundef nonnull @__PRETTY_FUNCTION__.changePowerFourCycles) #5
  unreachable

50:                                               ; preds = %43
  %51 = tail call i32 @num_four_cycles_node(ptr noundef nonnull %0, i32 noundef %48)
  %52 = zext i32 %51 to i64
  %53 = load i32, ptr %36, align 8, !tbaa !14
  %.not107 = icmp eq i32 %53, 0
  br i1 %.not107, label %58, label %54

54:                                               ; preds = %50
  %55 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %48) #4
  %56 = tail call i32 @twoPaths(ptr noundef nonnull %0, i32 noundef %48, i32 noundef %2) #4
  %57 = zext i32 %56 to i64
  br label %69

58:                                               ; preds = %50
  %59 = tail call i32 @twoPaths(ptr noundef nonnull %0, i32 noundef %48, i32 noundef %2) #4
  %60 = zext i32 %59 to i64
  %61 = tail call i32 @isEdge(ptr noundef nonnull %0, i32 noundef %48, i32 noundef %2) #4
  %.not108 = icmp eq i32 %61, 0
  br i1 %.not108, label %69, label %62

62:                                               ; preds = %58
  %63 = load i32, ptr %36, align 8, !tbaa !14
  %.not109 = icmp eq i32 %63, 0
  br i1 %.not109, label %65, label %64

64:                                               ; preds = %62
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 494, ptr noundef nonnull @__PRETTY_FUNCTION__.changePowerFourCycles) #5
  unreachable

65:                                               ; preds = %62
  %66 = tail call i32 @twoPaths(ptr noundef nonnull %0, i32 noundef %48, i32 noundef %1) #4
  %67 = zext i32 %66 to i64
  %68 = add nuw nsw i64 %67, %60
  br label %69

69:                                               ; preds = %54, %58, %65
  %.097 = phi i64 [ %68, %65 ], [ %60, %58 ], [ %57, %54 ]
  %70 = add nuw nsw i64 %.097, %52
  %71 = uitofp nneg i64 %70 to double
  %72 = tail call double @pow(double noundef %71, double noundef %5) #4
  %73 = uitofp i32 %51 to double
  %74 = tail call double @pow(double noundef %73, double noundef %5) #4
  %75 = fsub double %72, %74
  %76 = fadd double %.094116, %75
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %77 = load ptr, ptr %30, align 8, !tbaa !5
  %78 = getelementptr inbounds i32, ptr %77, i64 %31
  %79 = load i32, ptr %78, align 4, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = icmp ult i64 %indvars.iv.next, %80
  br i1 %81, label %43, label %.preheader, !llvm.loop !15

82:                                               ; preds = %.lr.ph119, %106
  %indvars.iv124 = phi i64 [ 0, %.lr.ph119 ], [ %indvars.iv.next125, %106 ]
  %.1118 = phi double [ %.094.lcssa, %.lr.ph119 ], [ %.2, %106 ]
  %83 = load ptr, ptr %41, align 8, !tbaa !12
  %84 = getelementptr inbounds ptr, ptr %83, i64 %38
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv124
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %.not103 = icmp eq i32 %87, %2
  br i1 %.not103, label %88, label %89

88:                                               ; preds = %82
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 504, ptr noundef nonnull @__PRETTY_FUNCTION__.changePowerFourCycles) #5
  unreachable

89:                                               ; preds = %82
  %90 = tail call i32 @isEdge(ptr noundef nonnull %0, i32 noundef %87, i32 noundef %1) #4
  %.not104 = icmp eq i32 %90, 0
  br i1 %.not104, label %91, label %106

91:                                               ; preds = %89
  %92 = tail call i32 @num_four_cycles_node(ptr noundef nonnull %0, i32 noundef %87)
  %93 = zext i32 %92 to i64
  %94 = load i32, ptr %42, align 8, !tbaa !14
  %.not105 = icmp eq i32 %94, 0
  br i1 %.not105, label %97, label %95

95:                                               ; preds = %91
  %96 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %87) #4
  br label %97

97:                                               ; preds = %91, %95
  %98 = tail call i32 @twoPaths(ptr noundef nonnull %0, i32 noundef %87, i32 noundef %1) #4
  %.198 = zext i32 %98 to i64
  %99 = add nuw nsw i64 %.198, %93
  %100 = uitofp nneg i64 %99 to double
  %101 = tail call double @pow(double noundef %100, double noundef %5) #4
  %102 = uitofp i32 %92 to double
  %103 = tail call double @pow(double noundef %102, double noundef %5) #4
  %104 = fsub double %101, %103
  %105 = fadd double %.1118, %104
  br label %106

106:                                              ; preds = %89, %97
  %.2 = phi double [ %.1118, %89 ], [ %105, %97 ]
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %107 = load ptr, ptr %30, align 8, !tbaa !5
  %108 = getelementptr inbounds i32, ptr %107, i64 %38
  %109 = load i32, ptr %108, align 4, !tbaa !11
  %110 = zext i32 %109 to i64
  %111 = icmp ult i64 %indvars.iv.next125, %110
  br i1 %111, label %82, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %106, %.preheader, %8
  %.0 = phi double [ 0.000000e+00, %8 ], [ %.094.lcssa, %.preheader ], [ %.2, %106 ]
  ret double %.0
}

attributes #0 = { 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 #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 }
attributes #5 = { 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, !10, i64 64}
!6 = !{!"graph_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !10, i64 224, !7, i64 232, !7, i64 236, !10, i64 240, !10, i64 248, !7, i64 256, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 288, !7, i64 296, !7, i64 300, !10, i64 304, !7, i64 312, !10, i64 320}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 72}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !7, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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