Skip to content

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

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

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

Conversation

@danielsn
Copy link
Copy Markdown
Contributor

@danielsn danielsn commented Jun 17, 2021

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.

Copy link
Copy Markdown
Contributor

@adpaco-aws adpaco-aws left a comment

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-aws adpaco-aws merged commit b6c45b3 into model-checking:main-152-2021-06-17 Jun 18, 2021
@zhassan-aws zhassan-aws mentioned this pull request Aug 6, 2021
4 tasks
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