Extend stack pointer support in TriCera #24
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to address #12.
The idea is to introduce an AST preprocessor package (perhaps to be named
astpreprocessor
), where we can run various translators on input programs that update / collect information on the AST prior to sending the final AST toCCReader
. These AST preprocessors should also include a back-translator for translating back solutions and counterexamples.Initially, we can consider a solution at AST-level to be all the contracts of the functions. The task would then be to translate contracts over the preprocessed AST to contracts over the AST prior to preprocessing. For instance if the preprocessor created copies of functions
f_1, f_2, ..., f_n
for some functionf
and the solution is for the copy functions, then the back-translator should merge those contracts into a single contract forf
.Task list
Compile visitors in ccparser, currently only the ones in Absyn are compiled.(already done prior to creating this PR )A more detailed task list is inserted into
CCReader
as comments in the first commit of this PR.