Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover example differs #316

Open
isidroas opened this issue Nov 2, 2024 · 2 comments
Open

Cover example differs #316

isidroas opened this issue Nov 2, 2024 · 2 comments

Comments

@isidroas
Copy link

isidroas commented Nov 2, 2024

When doing the example of https://crosshair.readthedocs.io/en/latest/cover.html , I noticed that the result is different:

$ crosshair cover foo.py
average([0.0], default=float("inf"))

To get the same results I had to increase the iterations:

$ crosshair cover --max_uninteresting_iterations 15 foo.py
average([0.0], default=float("inf"))
average([], default=0.0)

$ crosshair cover --max_uninteresting_iterations 19 foo.py
average([0.0], default=float("inf"))
average([], default=0.0)
average([], default=None)

offtopic: Thank you for this very curious library!

@pschanely
Copy link
Owner

Ah, yes, as of recently, CrossHair attempts true floating point semantics. That's good, but it's made this example take longer. I'll update the example soon. (or maybe tweak the heuristics)

offtopic: Thank you for this very curious library!

😊 If you end up trying it out, I would love to hear more about what works well for you, and what doesn't!

@pschanely
Copy link
Owner

Update: I am delaying a documentation fix for this slightly, under the hope that one of my unrelated arcs of work makes it not necessary. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants