Skip to content

Refactor VerificationService #724

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

Merged
merged 6 commits into from
Oct 22, 2021
Merged

Refactor VerificationService #724

merged 6 commits into from
Oct 22, 2021

Conversation

fpoli
Copy link
Member

@fpoli fpoli commented Oct 21, 2021

This refactoring prepares VerificationService to be asynchronous (in a future PR that makes VerificationService::verify return a Future, upgrading to reqwest >= 0.10).

The Prusti server has been designed to handle concurrent verification requests, but so far we used it sequentially because there were concurrency issues (now fixed) in Viper.

@vakaras I changed the service to take a single program, not a vector. It makes it easier to limit the number of concurrent verification requests.

The diff is negative 🎉

@fpoli fpoli force-pushed the verify-programs branch 2 times, most recently from b17beaa to 8490d9c Compare October 21, 2021 12:33
Copy link
Contributor

@vakaras vakaras left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurel300
Copy link
Member

Are the changes to prusti-server introduced in #415 necessary anymore? Or did you only update a subset of the outdated dependencies?

@fpoli
Copy link
Member Author

fpoli commented Oct 21, 2021

I didn't update the dependencies. I think we still need #415 in the end.

@fpoli
Copy link
Member Author

fpoli commented Oct 21, 2021

Silicon doesn't seem to be thread-safe yet: viperproject/silicon#578

@fpoli fpoli merged commit 0c9b0b3 into master Oct 22, 2021
@fpoli fpoli deleted the verify-programs branch October 22, 2021 07:33
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.

3 participants