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

Seperate SMT Analysis Stages #62

Closed
d-xo opened this issue Dec 15, 2020 · 1 comment · Fixed by #93
Closed

Seperate SMT Analysis Stages #62

d-xo opened this issue Dec 15, 2020 · 1 comment · Fixed by #93
Labels
enhancement New feature or request
Milestone

Comments

@d-xo
Copy link
Collaborator

d-xo commented Dec 15, 2020

The SMT backend currently performs two checks:

  1. Invariants hold
  2. Postconditions are implied by preconditions

These checks are currenlty performed in a single pass, and we currenlty force the second to be run for all specs by inserting an implicit true invariant on all contracts. This is pretty hacky and makes the smt output a little messy (as the implicit invariant shows up in the output). This also fails if the spec does not include a construcor.

We should rework the SMT backend to work in multiple passes. This will lay the foundation for future analyis stages (e.g. exhaustiveness, bounds checking), and make generating nice output from the smt backend easier.

@d-xo d-xo added the enhancement New feature or request label Dec 15, 2020
@d-xo d-xo added this to the v0.1 milestone Dec 15, 2020
@MrChico
Copy link
Member

MrChico commented Dec 15, 2020

Related #14

@d-xo d-xo linked a pull request Apr 27, 2021 that will close this issue
@d-xo d-xo closed this as completed in #93 Apr 29, 2021
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

Successfully merging a pull request may close this issue.

2 participants