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

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

%struct.graph_s = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, i32, ptr, i32, ptr, ptr, i32, i32, ptr, i32, ptr }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__.changeAltKTrianglesT = external hidden unnamed_addr constant [63 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @changeAltKTrianglesT(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3) #4 {
  %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 double, align 8
  %13 = alloca i32, align 4
  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) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  %14 = load double, ptr %9, align 8, !tbaa !11
  %15 = fcmp ogt double %14, 1.000000e+00
  br i1 %15, label %16, label %17

16:                                               ; preds = %4
  br label %18

17:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 279, ptr noundef @__PRETTY_FUNCTION__.changeAltKTrianglesT) #7
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.graph_s, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %25

24:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 280, ptr noundef @__PRETTY_FUNCTION__.changeAltKTrianglesT) #7
  unreachable

25:                                               ; preds = %23
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = call i32 @isArc(ptr noundef %26, i32 noundef %27, i32 noundef %28)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %25
  br label %33

32:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 281, ptr noundef @__PRETTY_FUNCTION__.changeAltKTrianglesT) #7
  unreachable

33:                                               ; preds = %31
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  store double 0.000000e+00, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %159

38:                                               ; preds = %33
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %88, %38
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.graph_s, ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = icmp ult i32 %40, %47
  br i1 %48, label %49, label %91

49:                                               ; preds = %39
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.graph_s, ptr %50, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %56, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %60, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %68, label %64

64:                                               ; preds = %49
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = icmp eq i32 %65, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %64, %49
  br label %88

69:                                               ; preds = %64
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = call i32 @isArc(ptr noundef %70, i32 noundef %71, i32 noundef %72)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %87

75:                                               ; preds = %69
  %76 = load double, ptr %9, align 8, !tbaa !11
  %77 = fdiv double 1.000000e+00, %76
  %78 = fsub double 1.000000e+00, %77
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = call i32 @mixTwoPaths(ptr noundef %79, i32 noundef %80, i32 noundef %81)
  %83 = uitofp i32 %82 to double
  %84 = call double @pow(double noundef %78, double noundef %83) #6
  %85 = load double, ptr %12, align 8, !tbaa !11
  %86 = fadd double %85, %84
  store double %86, ptr %12, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %75, %69
  br label %88

88:                                               ; preds = %87, %68
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !9
  br label %39, !llvm.loop !17

91:                                               ; preds = %39
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %141, %91
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.graph_s, ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %95, align 8, !tbaa !19
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp ult i32 %93, %100
  br i1 %101, label %102, label %144

102:                                              ; preds = %92
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.graph_s, ptr %103, i32 0, i32 7
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  store i32 %113, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = icmp eq i32 %114, %115
  br i1 %116, label %121, label %117

117:                                              ; preds = %102
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = icmp eq i32 %118, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %117, %102
  br label %141

122:                                              ; preds = %117
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = call i32 @isArc(ptr noundef %123, i32 noundef %124, i32 noundef %125)
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %140

128:                                              ; preds = %122
  %129 = load double, ptr %9, align 8, !tbaa !11
  %130 = fdiv double 1.000000e+00, %129
  %131 = fsub double 1.000000e+00, %130
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = call i32 @mixTwoPaths(ptr noundef %132, i32 noundef %133, i32 noundef %134)
  %136 = uitofp i32 %135 to double
  %137 = call double @pow(double noundef %131, double noundef %136) #6
  %138 = load double, ptr %12, align 8, !tbaa !11
  %139 = fadd double %138, %137
  store double %139, ptr %12, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %128, %122
  br label %141

141:                                              ; preds = %140, %121
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %11, align 4, !tbaa !9
  br label %92, !llvm.loop !21

144:                                              ; preds = %92
  %145 = load double, ptr %9, align 8, !tbaa !11
  %146 = load double, ptr %9, align 8, !tbaa !11
  %147 = fdiv double 1.000000e+00, %146
  %148 = fsub double 1.000000e+00, %147
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = call i32 @mixTwoPaths(ptr noundef %149, i32 noundef %150, i32 noundef %151)
  %153 = uitofp i32 %152 to double
  %154 = call double @pow(double noundef %148, double noundef %153) #6
  %155 = fsub double 1.000000e+00, %154
  %156 = load double, ptr %12, align 8, !tbaa !11
  %157 = call double @llvm.fmuladd.f64(double %145, double %155, double %156)
  store double %157, ptr %12, align 8, !tbaa !11
  %158 = load double, ptr %12, align 8, !tbaa !11
  store double %158, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %159

159:                                              ; preds = %144, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %160 = load double, ptr %5, align 8
  ret double %160
}

declare i32 @mixTwoPaths(ptr noundef, i32 noundef, i32 noundef) #1

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

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 4}
!14 = !{!"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}
!15 = !{!14, !6, i64 16}
!16 = !{!14, !6, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !6, i64 40}
!21 = distinct !{!21, !18}


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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__.changeAltKTrianglesT = external hidden unnamed_addr constant [63 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @changeAltKTrianglesT(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3) local_unnamed_addr #3 {
  %5 = fcmp ogt double %3, 1.000000e+00
  br i1 %5, label %7, label %6

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 279, ptr noundef nonnull @__PRETTY_FUNCTION__.changeAltKTrianglesT) #5
  unreachable

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %11

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

11:                                               ; preds = %7
  %12 = tail call i32 @isArc(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2) #6
  %.not60 = icmp eq i32 %12, 0
  br i1 %.not60, label %14, label %13

13:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 281, ptr noundef nonnull @__PRETTY_FUNCTION__.changeAltKTrianglesT) #5
  unreachable

14:                                               ; preds = %11
  %15 = icmp eq i32 %1, %2
  br i1 %15, label %78, label %.preheader64

.preheader64:                                     ; preds = %14
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = zext i32 %1 to i64
  %18 = load ptr, ptr %16, align 8, !tbaa !11
  %19 = getelementptr inbounds i32, ptr %18, i64 %17
  %20 = load i32, ptr %19, align 4, !tbaa !12
  %.not72 = icmp eq i32 %20, 0
  br i1 %.not72, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader64
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = fdiv double 1.000000e+00, %3
  %23 = fsub double 1.000000e+00, %22
  br label %31

.preheader:                                       ; preds = %46, %.preheader64
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader64 ], [ %.1, %46 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = getelementptr inbounds i32, ptr %25, i64 %17
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %.not73 = icmp eq i32 %27, 0
  br i1 %.not73, label %.preheader.._crit_edge_crit_edge, label %.lr.ph70

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre = fdiv double 1.000000e+00, %3
  %.pre78 = fsub double 1.000000e+00, %.pre
  br label %._crit_edge

.lr.ph70:                                         ; preds = %.preheader
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = fdiv double 1.000000e+00, %3
  %30 = fsub double 1.000000e+00, %29
  br label %52

31:                                               ; preds = %.lr.ph, %46
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %46 ]
  %.066 = phi double [ 0.000000e+00, %.lr.ph ], [ %.1, %46 ]
  %32 = load ptr, ptr %21, align 8, !tbaa !14
  %33 = getelementptr inbounds ptr, ptr %32, i64 %17
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !12
  %37 = icmp eq i32 %36, %1
  %38 = icmp eq i32 %36, %2
  %or.cond = or i1 %37, %38
  br i1 %or.cond, label %46, label %39

39:                                               ; preds = %31
  %40 = tail call i32 @isArc(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %36) #6
  %.not62 = icmp eq i32 %40, 0
  br i1 %.not62, label %46, label %41

41:                                               ; preds = %39
  %42 = tail call i32 @mixTwoPaths(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %36) #6
  %43 = uitofp i32 %42 to double
  %44 = tail call double @pow(double noundef %23, double noundef %43) #6
  %45 = fadd double %.066, %44
  br label %46

46:                                               ; preds = %39, %41, %31
  %.1 = phi double [ %.066, %31 ], [ %45, %41 ], [ %.066, %39 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load ptr, ptr %16, align 8, !tbaa !11
  %48 = getelementptr inbounds i32, ptr %47, i64 %17
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = zext i32 %49 to i64
  %51 = icmp ult i64 %indvars.iv.next, %50
  br i1 %51, label %31, label %.preheader, !llvm.loop !16

52:                                               ; preds = %.lr.ph70, %67
  %indvars.iv75 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next76, %67 ]
  %.269 = phi double [ %.0.lcssa, %.lr.ph70 ], [ %.3, %67 ]
  %53 = load ptr, ptr %28, align 8, !tbaa !18
  %54 = getelementptr inbounds ptr, ptr %53, i64 %17
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv75
  %57 = load i32, ptr %56, align 4, !tbaa !12
  %58 = icmp eq i32 %57, %1
  %59 = icmp eq i32 %57, %2
  %or.cond63 = or i1 %58, %59
  br i1 %or.cond63, label %67, label %60

60:                                               ; preds = %52
  %61 = tail call i32 @isArc(ptr noundef nonnull %0, i32 noundef %57, i32 noundef %2) #6
  %.not61 = icmp eq i32 %61, 0
  br i1 %.not61, label %67, label %62

62:                                               ; preds = %60
  %63 = tail call i32 @mixTwoPaths(ptr noundef nonnull %0, i32 noundef %57, i32 noundef %2) #6
  %64 = uitofp i32 %63 to double
  %65 = tail call double @pow(double noundef %30, double noundef %64) #6
  %66 = fadd double %.269, %65
  br label %67

67:                                               ; preds = %60, %62, %52
  %.3 = phi double [ %.269, %52 ], [ %66, %62 ], [ %.269, %60 ]
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %68 = load ptr, ptr %24, align 8, !tbaa !13
  %69 = getelementptr inbounds i32, ptr %68, i64 %17
  %70 = load i32, ptr %69, align 4, !tbaa !12
  %71 = zext i32 %70 to i64
  %72 = icmp ult i64 %indvars.iv.next76, %71
  br i1 %72, label %52, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %67, %.preheader.._crit_edge_crit_edge
  %.pre-phi79 = phi double [ %.pre78, %.preheader.._crit_edge_crit_edge ], [ %30, %67 ]
  %.2.lcssa = phi double [ %.0.lcssa, %.preheader.._crit_edge_crit_edge ], [ %.3, %67 ]
  %73 = tail call i32 @mixTwoPaths(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2) #6
  %74 = uitofp i32 %73 to double
  %75 = tail call double @pow(double noundef %.pre-phi79, double noundef %74) #6
  %76 = fsub double 1.000000e+00, %75
  %77 = tail call double @llvm.fmuladd.f64(double %3, double %76, double %.2.lcssa)
  br label %78

78:                                               ; preds = %14, %._crit_edge
  %.054 = phi double [ %77, %._crit_edge ], [ 0.000000e+00, %14 ]
  ret double %.054
}

declare i32 @mixTwoPaths(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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 = { "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 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !7, i64 4}
!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 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 32}
!14 = !{!6, !10, i64 24}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 40}
!19 = distinct !{!19, !17}


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