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

Add statistics output for long-running computations #2991

Closed
konnov opened this issue Sep 18, 2024 · 0 comments · Fixed by #2992
Closed

Add statistics output for long-running computations #2991

konnov opened this issue Sep 18, 2024 · 0 comments · Fixed by #2992
Assignees
Labels
feature A new feature or functionality FSMT Feature: Improvements in the SMT encoding

Comments

@konnov
Copy link
Collaborator

konnov commented Sep 18, 2024

The CLI version of Z3 supports periodic statistics, e.g.,

z3 verbose=3 stats=true log0.smt
(smt.searching)
(smt.stats :restarts     :decisions :clauses/bin/units      :simplify  :memory)
(smt.stats        :conflicts    :propagations          :lemmas   :deletions   )
(smt.stats    0      0      0      0 57037/36291/2996      0    0    0  112.35)
(smt.stats    0    101   2582  59179 53338/38652/3333   4024/7     2 6060  114.77)
(smt.stats    1    203   3491 115174 53338/38652/3334   7931/8     3 6060  115.55)
(smt.stats    2    306   3871 172926 53338/38652/3334   9623/8     3 6060  115.74)
(smt.stats    3    410   4388 210481 53338/38652/3334  12109/8     3 6060  116.03)
(smt.stats    4    515   4830 302266 53339/38653/3336  15435/18     4 6060  116.53)
(smt.stats    5    621   5329 315379 53339/38653/3336  15702/23     5 6060  116.53)
(smt.stats :restarts  :decisions  :clauses/bin/units            :simplify  :memory)
(smt.stats      :conflicts :propagations           :lemmas        :deletions      )
(smt.stats    6    728   5680 322192 53339/38653/3336  15880/23     5 6060  116.53)
(smt.stats    7    836   6160 344447 53339/38653/3336  16971/23     5 6060  116.62)
(smt.stats    8    945   6641 394437 53342/38656/3336  18899/23     5 6060  116.91)

We should be able to print something similar in detailed.log, e.g., when the user increases the verbosity level. Otherwise, it is impossible to get any idea about what is going on inside z3 for hours or days.

@konnov konnov added FSMT Feature: Improvements in the SMT encoding feature A new feature or functionality labels Sep 18, 2024
@konnov konnov self-assigned this Sep 18, 2024
@konnov konnov closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or functionality FSMT Feature: Improvements in the SMT encoding
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant