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

; 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 [44 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.arcCorrection = external hidden unnamed_addr constant [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local double @arcCorrection(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.graph_s, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = uitofp i32 %21 to double
  store double %22, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = call double @num_graph_dyads(ptr noundef %23, i32 noundef %24)
  store double %25, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call i32 @num_arcs_or_edges(ptr noundef %26)
  %28 = uitofp i32 %27 to double
  store double %28, ptr %14, align 8, !tbaa !13
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %5
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %35, label %34

34:                                               ; preds = %31, %5
  br label %36

35:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__.arcCorrection) #6
  unreachable

36:                                               ; preds = %34
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %46, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %42, %36
  br label %47

46:                                               ; preds = %42, %39
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__.arcCorrection) #6
  unreachable

47:                                               ; preds = %45
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %47
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.graph_s, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !15
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %50, %47
  br label %57

56:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 98, ptr noundef @__PRETTY_FUNCTION__.arcCorrection) #6
  unreachable

57:                                               ; preds = %55
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %57
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.graph_s, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !16
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %60, %57
  br label %67

66:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__.arcCorrection) #6
  unreachable

67:                                               ; preds = %65
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.graph_s, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !16
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %67
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graph_s, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !15
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %78, label %77

77:                                               ; preds = %72, %67
  br label %79

78:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 100, ptr noundef @__PRETTY_FUNCTION__.arcCorrection) #6
  unreachable

79:                                               ; preds = %77
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.graph_s, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !15
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %102

84:                                               ; preds = %79
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %102

87:                                               ; preds = %84
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  %91 = load double, ptr %12, align 8, !tbaa !13
  %92 = load double, ptr %12, align 8, !tbaa !13
  %93 = fsub double %92, 1.000000e+00
  %94 = fmul double %91, %93
  %95 = fdiv double %94, 2.000000e+00
  %96 = load double, ptr %13, align 8, !tbaa !13
  %97 = fsub double %96, %95
  store double %97, ptr %13, align 8, !tbaa !13
  br label %101

98:                                               ; preds = %87
  %99 = load double, ptr %13, align 8, !tbaa !13
  %100 = fdiv double %99, 2.000000e+00
  store double %100, ptr %13, align 8, !tbaa !13
  br label %101

101:                                              ; preds = %98, %90
  br label %102

102:                                              ; preds = %101, %84, %79
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %119

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = call double @num_graph_inner_dyads(ptr noundef %106)
  store double %107, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = call i32 @num_inner_arcs_or_edges(ptr noundef %108)
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = load double, ptr %15, align 8, !tbaa !13
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = uitofp i32 %111 to double
  %113 = fsub double %110, %112
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = add i32 %114, 1
  %116 = uitofp i32 %115 to double
  %117 = fdiv double %113, %116
  %118 = call double @log(double noundef %117) #5
  store double %118, ptr %6, align 8
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %154

119:                                              ; preds = %102
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %146

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.graph_s, ptr %123, i32 0, i32 44
  %125 = load i32, ptr %124, align 4, !tbaa !17
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.graph_s, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !11
  %129 = sub i32 %128, 1
  %130 = mul i32 %125, %129
  %131 = udiv i32 %130, 2
  %132 = uitofp i32 %131 to double
  store double %132, ptr %18, align 8, !tbaa !13
  %133 = load double, ptr %18, align 8, !tbaa !13
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.graph_s, ptr %134, i32 0, i32 46
  %136 = load i32, ptr %135, align 8, !tbaa !18
  %137 = uitofp i32 %136 to double
  %138 = fsub double %133, %137
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.graph_s, ptr %139, i32 0, i32 46
  %141 = load i32, ptr %140, align 8, !tbaa !18
  %142 = add i32 %141, 1
  %143 = uitofp i32 %142 to double
  %144 = fdiv double %138, %143
  %145 = call double @log(double noundef %144) #5
  store double %145, ptr %6, align 8
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %154

146:                                              ; preds = %119
  %147 = load double, ptr %13, align 8, !tbaa !13
  %148 = load double, ptr %14, align 8, !tbaa !13
  %149 = fsub double %147, %148
  %150 = load double, ptr %14, align 8, !tbaa !13
  %151 = fadd double %150, 1.000000e+00
  %152 = fdiv double %149, %151
  %153 = call double @log(double noundef %152) #5
  store double %153, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %154

154:                                              ; preds = %146, %122, %105
  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
  %155 = load double, ptr %6, align 8
  ret double %155
}

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

declare double @num_graph_dyads(ptr noundef, i32 noundef) #2

declare i32 @num_arcs_or_edges(ptr noundef) #2

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

declare double @num_graph_inner_dyads(ptr noundef) #2

declare i32 @num_inner_arcs_or_edges(ptr noundef) #2

; Function Attrs: nounwind
declare double @log(double 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 = { "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 = { 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, !10, i64 0}
!12 = !{!"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}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!12, !10, i64 4}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 300}
!18 = !{!12, !10, i64 312}


; 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 [44 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.arcCorrection = external hidden unnamed_addr constant [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local double @arcCorrection(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = uitofp i32 %6 to double
  %8 = tail call double @num_graph_dyads(ptr noundef nonnull %0, i32 noundef %4) #4
  %9 = tail call i32 @num_arcs_or_edges(ptr noundef nonnull %0) #4
  %10 = uitofp i32 %9 to double
  %11 = icmp ne i32 %1, 0
  %12 = icmp ne i32 %2, 0
  %or.cond = and i1 %11, %12
  br i1 %or.cond, label %13, label %14

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

14:                                               ; preds = %5
  %.not = icmp eq i32 %4, 0
  %15 = or i32 %2, %1
  %or.cond3.not = icmp eq i32 %15, 0
  %or.cond47 = or i1 %or.cond3.not, %.not
  br i1 %or.cond47, label %17, label %16

16:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__.arcCorrection) #5
  unreachable

17:                                               ; preds = %14
  br i1 %12, label %18, label %22

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %.not43 = icmp eq i32 %20, 0
  br i1 %.not43, label %21, label %22

21:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 98, ptr noundef nonnull @__PRETTY_FUNCTION__.arcCorrection) #5
  unreachable

22:                                               ; preds = %17, %18
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !12
  %.not44 = icmp eq i32 %24, 0
  br i1 %11, label %25, label %27

25:                                               ; preds = %22
  br i1 %.not44, label %.thread, label %26

26:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__.arcCorrection) #5
  unreachable

27:                                               ; preds = %22
  br i1 %.not44, label %.thread, label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !11
  %.not46 = icmp eq i32 %30, 0
  br i1 %.not46, label %.thread54, label %31

31:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 100, ptr noundef nonnull @__PRETTY_FUNCTION__.arcCorrection) #5
  unreachable

.thread:                                          ; preds = %25, %27
  %.phi.trans.insert49 = getelementptr inbounds i8, ptr %0, i64 4
  %.pre50 = load i32, ptr %.phi.trans.insert49, align 4, !tbaa !11
  %32 = icmp ne i32 %.pre50, 0
  %33 = icmp ne i32 %3, 0
  %or.cond5 = and i1 %33, %32
  br i1 %or.cond5, label %34, label %42

34:                                               ; preds = %.thread
  br i1 %.not, label %40, label %35

35:                                               ; preds = %34
  %36 = fadd double %7, -1.000000e+00
  %37 = fmul double %36, %7
  %38 = fmul double %37, 5.000000e-01
  %39 = fsub double %8, %38
  br label %42

40:                                               ; preds = %34
  %41 = fmul double %8, 5.000000e-01
  br label %42

42:                                               ; preds = %35, %40, %.thread
  %.042 = phi double [ %39, %35 ], [ %41, %40 ], [ %8, %.thread ]
  br i1 %11, label %43, label %.thread54

43:                                               ; preds = %42
  %44 = tail call double @num_graph_inner_dyads(ptr noundef nonnull %0) #4
  %45 = tail call i32 @num_inner_arcs_or_edges(ptr noundef nonnull %0) #4
  %46 = uitofp i32 %45 to double
  %47 = fsub double %44, %46
  %48 = add i32 %45, 1
  %49 = uitofp i32 %48 to double
  %50 = fdiv double %47, %49
  br label %70

.thread54:                                        ; preds = %28, %42
  %.04256 = phi double [ %.042, %42 ], [ %8, %28 ]
  br i1 %12, label %51, label %66

51:                                               ; preds = %.thread54
  %52 = getelementptr inbounds i8, ptr %0, i64 300
  %53 = load i32, ptr %52, align 4, !tbaa !13
  %54 = load i32, ptr %0, align 8, !tbaa !5
  %55 = add i32 %54, -1
  %56 = mul i32 %55, %53
  %57 = lshr i32 %56, 1
  %58 = uitofp nneg i32 %57 to double
  %59 = getelementptr inbounds i8, ptr %0, i64 312
  %60 = load i32, ptr %59, align 8, !tbaa !14
  %61 = uitofp i32 %60 to double
  %62 = fsub double %58, %61
  %63 = add i32 %60, 1
  %64 = uitofp i32 %63 to double
  %65 = fdiv double %62, %64
  br label %70

66:                                               ; preds = %.thread54
  %67 = fsub double %.04256, %10
  %68 = fadd double %10, 1.000000e+00
  %69 = fdiv double %67, %68
  br label %70

70:                                               ; preds = %66, %51, %43
  %.sink = phi double [ %69, %66 ], [ %65, %51 ], [ %50, %43 ]
  %71 = tail call double @log(double noundef %.sink) #4
  ret double %71
}

declare double @num_graph_dyads(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @num_arcs_or_edges(ptr noundef) local_unnamed_addr #1

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

declare double @num_graph_inner_dyads(ptr noundef) local_unnamed_addr #1

declare i32 @num_inner_arcs_or_edges(ptr noundef) local_unnamed_addr #1

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

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 = { "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 = { 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 #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, !7, i64 0}
!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, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 300}
!14 = !{!6, !7, i64 312}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass