-
Notifications
You must be signed in to change notification settings - Fork 0
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
sqrt(x*x) not improved correctly #220
Comments
Definitely a bug, thank you for reporting! I confirmed that this is the result we are obtaining from the |
I started looking into this. |
This seems to be blocked on server changes which Zane isn't around to finish. I've added this to the Monday meeting agenda. |
FWIW, the relevant rewrites seem sound (at first glance anyway). Perhaps something is smuggled through a pow rewrite? Next step is probably to try to repro with unsound rules disabled. Then to check the eqsat proof terms. |
There must be a difference between the alternatives considered by make-alternatives-result (https://github.com/herbie-fp/herbie/blob/d270acbc7fdb70c022858d48c7001216797499b1/src/api/server.rkt#L532) and make-improve-result (https://github.com/herbie-fp/herbie/blob/d270acbc7fdb70c022858d48c7001216797499b1/src/api/server.rkt#L435). I think Zane mentioned that it might have to do with improve running a processing step that doesn't run for alternatives? |
I started on this on this PR but didn't conclude on a solution before I got pulled away by end-of-semester items. |
When using "improve" on sqrt(x*x), the returned result is x. The result should be abs(x), so the returned result has high error. The Herbie example at https://herbie.uwplse.org/ processes this correctly.
The text was updated successfully, but these errors were encountered: