-
Notifications
You must be signed in to change notification settings - Fork 83
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
Num from to string #401
Num from to string #401
Conversation
@@ -158,7 +158,7 @@ val dest_opapp_size = Q.prove( | |||
|
|||
val get_name_aux_def = tDefine "get_name_aux" ` | |||
get_name_aux n vs = | |||
let v = "t" ++ num_to_dec_string n in | |||
let v = "t" ++ num_toString n in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good at a quick glance.
In case you didn't see, this failed the regression test. |
@@ -20,7 +20,7 @@ val sExp_size_def = fetch "-" "sExp_size_def"; | |||
|
|||
(* display_to_json *) | |||
val num_to_json_def = Define` | |||
num_to_json n = String (explode (toString (&n)))`; | |||
num_to_json n = String (explode (toString n))`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn you type-inference!!
cae691c
to
dd0443f
Compare
I'm closing this while it's failing the regression test. Re-open when fixed. |
I think we are safe now (Sorry, took me a while to realize I hadn't push my changes) |
dd0443f
to
990727e
Compare
@xrchz I'm not sure if the build system will re-run this |
As you can see, it has run and failed. |
(Reopen when the above failure is fixed.) |
Does this replace #379 btw? |
@agomezl are you still working on this? |
@xrchz yes, this PR does replace #379, I opened a new one since there is a current issue with github that does not allow to reopen PRs if the original reference is no longer an ancestor of the branch used in the PR (Basically no force pushes) I have now found a work around for that, sorry for the duplication. |
I updated and rebased my branch, and was able to reproduce the error, I'm currently trying to figure where this comes from:
since I didn't change anything inside |
* Replace several instances of `mlint$toString (&(n:num))` for more concise `mlnum$toString (n:num)` * Other minor fixes to various theories Issue: CakeML#342
After quite some fiddling, I thing I finally solved this issue. |
990727e
to
1784c16
Compare
mlnumTheory.toString_def, | ||
mlnumTheory.num_toString_def, | ||
mlnumTheory.fromString_def, | ||
mlnumTheory.fromString_unsafe_def |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lack of these definitions was the main culprit of the whole "not terminated by EMPTYSTRING"
issue
Resolves: #342