-
Notifications
You must be signed in to change notification settings - Fork 174
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
Support for basic arithmetic on constant values #968
Comments
There are two questions I think are important to answer before knowing it is possible to implement the above:
|
This would be a very useful feature. My thoughts on the two questions above:
One other thing we should decide on is expression features and format. I'm assuming we want to support the usual operands: One restriction we have with the current parser is that we can't allow any whitespace in expressions. So, it would have to look something like:
But I think this should be OK. |
Closed by #1026. |
When describing a large system, like the stark verifier, there are a few constants that are related to each other. For example the memory addresses and their offsets. In these cases it is interesting to support basic arithmetic on the constants.
The idea is to both use these expressions as documentation, since they can express the relation among the constants, and as a tool to prevent bugs, since the assembler would compute the values for us.
The text was updated successfully, but these errors were encountered: