Skip to content

Add rmc-prelude.rs, and use it in tests#226

Merged
adpaco merged 1 commit into
model-checking:main-152-2021-06-17from
danielsn:test-prelude
Jun 18, 2021
Merged

Add rmc-prelude.rs, and use it in tests#226
adpaco merged 1 commit into
model-checking:main-152-2021-06-17from
danielsn:test-prelude

Conversation

@danielsn

@danielsn danielsn commented Jun 17, 2021

Copy link
Copy Markdown
Contributor

Description of changes:

Currently, each test that uses __nondet() or __VERIFIER_assume needs to declare them inline.
After this PR, they can include!("rmc_prelude") instead

Resolved issues:

Resolves #227

Call-outs:

Ideally, we would have a seperate crate for this. For now, just include! the file works

Testing:

  • How is this change tested? Regressions still work after the change

  • Is this a refactor change? yes

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@adpaco adpaco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #230 and #231.

@adpaco adpaco merged commit b6c45b3 into model-checking:main-152-2021-06-17 Jun 18, 2021
adpaco pushed a commit that referenced this pull request Jun 23, 2021
adpaco pushed a commit that referenced this pull request Jul 2, 2021
adpaco pushed a commit that referenced this pull request Jul 9, 2021
adpaco pushed a commit that referenced this pull request Jul 15, 2021
adpaco pushed a commit that referenced this pull request Jul 26, 2021
adpaco pushed a commit that referenced this pull request Aug 2, 2021
@zhassan-aws zhassan-aws mentioned this pull request Aug 6, 2021
4 tasks
adpaco pushed a commit that referenced this pull request Aug 6, 2021
adpaco pushed a commit that referenced this pull request Aug 17, 2021
adpaco pushed a commit that referenced this pull request Aug 24, 2021
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
@danielsn danielsn deleted the test-prelude branch May 11, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It should be possible to use __nodet() without having to declare it inline

2 participants