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

Adds a timeout to solve #17

Open
wants to merge 3 commits into
base: dev-size
Choose a base branch
from
Open

Conversation

chinmaydd
Copy link
Collaborator

@chinmaydd chinmaydd commented Jun 4, 2017

This PR aims to achieve the following:

  • Uses channels to add a timeout functionality for the read() function of the SMTProcess. This enables us to wait until we receive a signal on the channel before the timeout. We add a new error type SMTError::Timeout to enable the user to check if the solver timed out on the current set of constraints.

  • solver.solve_with_timeout(smt_proc, time_in_milliseconds) now allows us to provide an argument for time in ms. This has not been added to the SMTBackend trait and can be added in future versions. Also added a similar check_sat_with_timeout. This now makes read() take a Option argument for the timeout period.

  • Also fixes a bunch of compiler warnings.

  • Fixes an error in real_insts.rs where the string "s" was being written instead of the variable.

@chinmaydd chinmaydd changed the title Adds a solve_with_timeout and a check_sat_with_timeout function Adds a timeout to solve Jun 4, 2017
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.

1 participant