; LLVM IR from P-py/c-numerical-methods :: dichotomy (main)

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

@.str = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store ptr null, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !9
  %11 = call i32 @receiveFunctionDegree()
  store i32 %11, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  call void @allocInts(ptr noundef %4, i32 noundef %13)
  %14 = load ptr, ptr %4, align 8, !tbaa !9
  %15 = load i32, ptr %2, align 4, !tbaa !5
  call void @storePowerNumbers(ptr noundef %14, i32 noundef %15)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  call void @allocFloats(ptr noundef %3, i32 noundef %17)
  %18 = load ptr, ptr %3, align 8, !tbaa !9
  %19 = load i32, ptr %2, align 4, !tbaa !5
  call void @storeBaseNumbers(ptr noundef %18, i32 noundef %19)
  %20 = load ptr, ptr %3, align 8, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !9
  %22 = load i32, ptr %2, align 4, !tbaa !5
  call void @showFunction(ptr noundef %20, ptr noundef %21, i32 noundef %22)
  call void @allocFloats(ptr noundef %5, i32 noundef 3)
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  call void @storeIntervalNumbers(ptr noundef %23)
  call void @allocFloats(ptr noundef %6, i32 noundef 1)
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  call void @storeErrorMargin(ptr noundef %24)
  call void @allocFloats(ptr noundef %7, i32 noundef 3)
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  %27 = load ptr, ptr %3, align 8, !tbaa !9
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  call void @validateFunction(ptr noundef %25, ptr noundef %26, ptr noundef %27, i32 noundef %28, ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = call double @calculateKValue(ptr noundef %30, ptr noundef %31)
  store double %32, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %48, %0
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = sitofp i32 %34 to double
  %36 = load double, ptr %8, align 8, !tbaa !11
  %37 = fcmp ole double %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %51

39:                                               ; preds = %33
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  %42 = load ptr, ptr %3, align 8, !tbaa !9
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !5
  call void @dichotomyIteration(ptr noundef %40, ptr noundef %41, ptr noundef %42, i32 noundef %43, ptr noundef %44, i32 noundef %45)
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  call void @updateIntervalValues(ptr noundef %46, ptr noundef %47)
  br label %48

48:                                               ; preds = %39
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %33, !llvm.loop !13

51:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %52 = load double, ptr %8, align 8, !tbaa !11
  %53 = fptosi double %52 to i32
  store i32 %53, ptr %10, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %74, %51
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = getelementptr inbounds float, ptr %55, i64 2
  %57 = load float, ptr %56, align 4, !tbaa !15
  %58 = call float @llvm.fabs.f32(float %57)
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = load float, ptr %59, align 4, !tbaa !15
  %61 = fcmp oge float %58, %60
  br i1 %61, label %62, label %72

62:                                               ; preds = %54
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds float, ptr %63, i64 1
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = load float, ptr %66, align 4, !tbaa !15
  %68 = fsub float %65, %67
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  %70 = load float, ptr %69, align 4, !tbaa !15
  %71 = fcmp oge float %68, %70
  br label %72

72:                                               ; preds = %62, %54
  %73 = phi i1 [ false, %54 ], [ %71, %62 ]
  br i1 %73, label %74, label %85

74:                                               ; preds = %72
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %10, align 4, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = load ptr, ptr %3, align 8, !tbaa !9
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = load ptr, ptr %7, align 8, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !5
  call void @dichotomyIteration(ptr noundef %77, ptr noundef %78, ptr noundef %79, i32 noundef %80, ptr noundef %81, i32 noundef %82)
  %83 = load ptr, ptr %7, align 8, !tbaa !9
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  call void @updateIntervalValues(ptr noundef %83, ptr noundef %84)
  br label %54, !llvm.loop !17

85:                                               ; preds = %72
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = getelementptr inbounds float, ptr %86, i64 2
  %88 = load float, ptr %87, align 4, !tbaa !15
  %89 = fpext float %88 to double
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %89)
  %91 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %91) #6
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %92) #6
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %93) #6
  %94 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %94) #6
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %95) #6
  call void @exit(i32 noundef 0) #7
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @allocInts(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @storePowerNumbers(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @allocFloats(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @storeBaseNumbers(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @showFunction(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @storeIntervalNumbers(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @storeErrorMargin(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @validateFunction(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @calculateKValue(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @dichotomyIteration(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @updateIntervalValues(ptr noundef, ptr noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @receiveFunctionDegree() #0

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !14}


; 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 [42 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr null, ptr %5, align 8, !tbaa !5
  %6 = tail call i32 @receiveFunctionDegree()
  %7 = add nsw i32 %6, 1
  call void @allocInts(ptr noundef nonnull %2, i32 noundef %7)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  call void @storePowerNumbers(ptr noundef %8, i32 noundef %6)
  call void @allocFloats(ptr noundef nonnull %1, i32 noundef %7)
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  call void @storeBaseNumbers(ptr noundef %9, i32 noundef %6)
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  call void @showFunction(ptr noundef %10, ptr noundef %11, i32 noundef %6)
  call void @allocFloats(ptr noundef nonnull %3, i32 noundef 3)
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  call void @storeIntervalNumbers(ptr noundef %12)
  call void @allocFloats(ptr noundef nonnull %4, i32 noundef 1)
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @storeErrorMargin(ptr noundef %13)
  call void @allocFloats(ptr noundef nonnull %5, i32 noundef 3)
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  call void @validateFunction(ptr noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %6, ptr noundef %17)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call double @calculateKValue(ptr noundef %18, ptr noundef %19)
  %21 = fcmp ult double %20, 1.000000e+00
  br i1 %21, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load float, ptr %23, align 4, !tbaa !9
  %25 = call float @llvm.fabs.f32(float %24)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load float, ptr %26, align 4, !tbaa !9
  %28 = fcmp ult float %25, %27
  br i1 %28, label %.critedge, label %.lr.ph20.preheader

.lr.ph20.preheader:                               ; preds = %._crit_edge
  %29 = fptosi double %20 to i32
  br label %.lr.ph20

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.01417 = phi i32 [ %36, %.lr.ph ], [ 1, %0 ]
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %1, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @dichotomyIteration(ptr noundef %30, ptr noundef %31, ptr noundef %32, i32 noundef %6, ptr noundef %33, i32 noundef %.01417)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @updateIntervalValues(ptr noundef %34, ptr noundef %35)
  %36 = add nuw nsw i32 %.01417, 1
  %37 = uitofp nneg i32 %36 to double
  %38 = fcmp ult double %20, %37
  br i1 %38, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph20:                                         ; preds = %.lr.ph20.preheader, %47
  %39 = phi float [ %58, %47 ], [ %27, %.lr.ph20.preheader ]
  %40 = phi ptr [ %53, %47 ], [ %22, %.lr.ph20.preheader ]
  %.018 = phi i32 [ %48, %47 ], [ %29, %.lr.ph20.preheader ]
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 4
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = load float, ptr %41, align 4, !tbaa !9
  %45 = fsub float %43, %44
  %46 = fcmp ult float %45, %39
  br i1 %46, label %.critedge, label %47

47:                                               ; preds = %.lr.ph20
  %48 = add nsw i32 %.018, 1
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  call void @dichotomyIteration(ptr noundef nonnull %41, ptr noundef %49, ptr noundef %50, i32 noundef %6, ptr noundef nonnull %40, i32 noundef %48)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  call void @updateIntervalValues(ptr noundef %51, ptr noundef %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = call float @llvm.fabs.f32(float %55)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fcmp ult float %56, %58
  br i1 %59, label %.critedge, label %.lr.ph20, !llvm.loop !13

.critedge:                                        ; preds = %.lr.ph20, %47, %._crit_edge
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = fpext float %62 to double
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %63)
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  call void @free(ptr noundef %65) #7
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %66) #7
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %67) #7
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %68) #7
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %69) #7
  call void @exit(i32 noundef 0) #8
  unreachable
}

; 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 uwtable
declare dso_local void @allocInts(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @storeIntervalNumbers(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @storeErrorMargin(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @updateIntervalValues(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @receiveFunctionDegree() local_unnamed_addr #2

attributes #0 = { noreturn 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass