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

Periodically print Z3 statistics #2992

Merged
merged 13 commits into from
Sep 23, 2024
Merged

Periodically print Z3 statistics #2992

merged 13 commits into from
Sep 23, 2024

Conversation

konnov
Copy link
Collaborator

@konnov konnov commented Sep 18, 2024

Closes #2991. This PR adds a debugging feature that helps me to get some hints about the SMT slowdowns:

  • Print Z3 statistics when a z3 context is disposed, e.g., on exit.
  • Print Z3 statistics every 60 seconds.

The statistics is only printed when --debug is on. Currently, the timeout period is ad-hoc. Once #2990 is merged, we can introduce better flags in the tuning options.

  • Tests added for any new code -- not really, I don't know how to test this effectively.
  • Ran make fmt-fix (or had formatting run automatically on all files edited)
  • Documentation added for any new functionality -- no need, it's basically integrated into --debug
  • Entries added to ./unreleased/ for any new functionality

@konnov konnov marked this pull request as ready for review September 18, 2024 17:57
@konnov konnov requested a review from thpani September 18, 2024 17:58
Copy link
Collaborator

@thpani thpani left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@konnov konnov merged commit 34bdc61 into main Sep 23, 2024
10 checks passed
@konnov konnov deleted the igor/z3-stats branch September 23, 2024 10:35
This was referenced Sep 24, 2024
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.

Add statistics output for long-running computations
2 participants