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

Global integer constants should be translated to their value #4

Open
tchajed opened this issue May 23, 2020 · 0 comments
Open

Global integer constants should be translated to their value #4

tchajed opened this issue May 23, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tchajed
Copy link
Collaborator

tchajed commented May 23, 2020

Rather than translate const declarations to global expressions, we should try to translate them to their value in Z and then use them as #ConstName. We would probably not bother emitting an expression in the source code (instead using the Go API to evaluate compile-time constants), but the benefits are:

  • We can support infinite-precision constants, which are the easiest to write down.
  • Coq proofs can directly use constants from the code rather than separate ones.
@tchajed tchajed added the enhancement New feature or request label May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant