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

Support for ghost annotations #21

Open
gustavung opened this issue Sep 4, 2024 · 1 comment
Open

Support for ghost annotations #21

gustavung opened this issue Sep 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gustavung
Copy link

Ghost code is very nice for making abstract specifications and for verification of complex code. Currently, there seems to be a lack of support for ghost annotations in Tricera. For example, the following example can not be parsed:

//@ ghost int v;

/*@ requires v <= 0;
        requires v >= 1000;
        assigns v;
        ensures v - \old(v) == 1;
*/
void main() {
//@ ghost v = v + 1;
}

This example fails with the following error message:
'Syntax Error, trying to recover and continue parse... for input symbol "" spanning from unknown:1/5(4) to unknown:1/10(9)
(error "Unrecoverable Syntax Error")
Other Error: Unrecoverable Syntax Error'

@zafer-esen zafer-esen added the enhancement New feature or request label Sep 11, 2024
@zafer-esen
Copy link
Collaborator

I agree that this would be a nice addition, thank you for the suggestion. I will look into it, but this might take a while.

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

2 participants