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

Implement WithVal #4

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

AdrianJendo
Copy link
Contributor

  • Implemented WithVal functionality for seamock lib

Example usage:

#[seamock]
pub trait Test {
    fn a(&self, x: i32, y: bool) -> i32;
    fn b(&self) -> u8;
    fn c(&self) -> i32;
}

let mut mock: MockTest = MockTest::new();
let x: i32 = verifier::any!();
let y: bool = verifier::any!();

verifier::assume!(x < 10);
verifier::assume!(y == true);

mock.with_a((WithVal::Lt(15), WithVal::Eq(true)))

@priyasiddharth priyasiddharth merged commit 76512f3 into seahorn:main May 14, 2024
1 check failed
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.

2 participants