Skip to content

Well-formedness checking of goto models #3152

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

Closed
danpoe opened this issue Oct 12, 2018 · 1 comment
Closed

Well-formedness checking of goto models #3152

danpoe opened this issue Oct 12, 2018 · 1 comment

Comments

@danpoe
Copy link
Contributor

danpoe commented Oct 12, 2018

To check that the goto model is well-formed, we want to check that the symbol table and the goto functions are well-formed, and that the symbol table and the goto functions are consistent. This includes the well-formedness of instructions, statements, expressions, and types.

The overall framework is in PR #3123 (it might need to be adapted slightly as new checks are added). It descends into the goto model and calls the validate() methods on its various components. It also provides macros DATA_CHECK(condition, ...) which either throw an exception when the condition does not hold, or use DATA_INVARIANT() to check the condition (based on the validation mode).

PRs #3128, #3127, and #3118 check that the goto functions and the symbol table are consistent. Those checks will be integrated into the harness of #3123.

PRs checking that the goto functions are well formed, and that the symbol table is well-formed are upcoming.

@TGWDB
Copy link
Contributor

TGWDB commented Jul 19, 2021

Closing as the noted PRs are now closed/merged and it is unclear that this is outstanding. Please reopen if you believe this is erroneous.

@TGWDB TGWDB closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants