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

saw-core parsing commands only recognize identifiers from Prelude.sawcore #330

Open
brianhuffman opened this issue Dec 7, 2018 · 1 comment
Labels
subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem topics: saw-core names Issues related to URI-based saw-core names type: bug Issues reporting bugs or unexpected/unwanted behavior
Milestone

Comments

@brianhuffman
Copy link
Contributor

The commands core_thm, core_axiom, and parse_core are supposed to parse saw-core expressions from strings. However, they raise errors if the expressions mention anything defined in Cryptol.sawcore, or any other loaded saw-core module except for the prelude.

sawscript> parse_core "ecToInteger (TCNum 8) (bvNat 8 0)"

user error ("parse_core" (<stdin>:1:1-1:11):
.:1:13:
Unbound name: TCNum
)
@brianhuffman brianhuffman self-assigned this Jan 18, 2021
@brianhuffman
Copy link
Contributor Author

brianhuffman commented Jan 18, 2021

We should be able to fix this by changing the saw-core parser/typechecker to use the new SAWNamingEnv introduced by GaloisInc/saw-core#87. GaloisInc/saw-core#118 is a step in the right direction, as it registers all top-level constants from .sawcore files in the naming environment.

@brianhuffman brianhuffman added the topics: saw-core names Issues related to URI-based saw-core names label Apr 28, 2022
@sauclovian-g sauclovian-g added type: bug Issues reporting bugs or unexpected/unwanted behavior subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem labels Oct 29, 2024
@sauclovian-g sauclovian-g added this to the Someday milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem topics: saw-core names Issues related to URI-based saw-core names type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

No branches or pull requests

2 participants