mirror of
https://github.com/Z3Prover/z3
synced 2026-08-02 20:23:27 +00:00
## Summary Adds a global configuration parameter **`suppress_platform_verbose`** (bool, default `false`). When set to `true`, memory and time information is suppressed from verbose output — the same behavior as the `-V` flag proposed in #10301, but driven by a global parameter instead of a dedicated command-line switch. This yields deterministic, platform-independent verbose output that is useful for testing and diffing. Usage: ``` z3 -v:2 suppress_platform_verbose=true problem.smt2 ``` ## Approach Instead of introducing a `-V` command-line flag (#10301), this registers `suppress_platform_verbose` as a global parameter via `env_params`, wired to a lightweight `get_suppress_platform_verbose()` flag in `util`. Verbose output sites guard only their **memory** (`mem_stat`) and **time** (`m_watch` / `:time` / `:before-memory` / `:after-memory`) fields on this flag. Platform-independent counters (e.g. `:cost`, `:threshold`, `:elim-vars`) are always emitted. Affected sites: - SAT: asymm-branch, probing, scc, simplifier (subsumer / blocked-clauses / resolution), solver stats (`sat.stats`, `:memory`, `mk_stat`) - SMT: context stats (`smt.stats`) - Tactic report (`:time`, `:before-memory`, `:after-memory`) ## Validation - Release build succeeds. - `suppress_platform_verbose` appears in `z3 -pd` with the correct type/default, and is accepted on the command line. - All 93 `test-z3 /a` unit tests pass. Closes the need for the `-V` switch in #10301. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 57b9b87e-950a-49ea-bbb3-ed585646a5a9 |
||
|---|---|---|
| .. | ||
| aig | ||
| arith | ||
| bv | ||
| core | ||
| fd_solver | ||
| fpa | ||
| portfolio | ||
| sls | ||
| smtlogics | ||
| ufbv | ||
| CMakeLists.txt | ||
| dependency_converter.cpp | ||
| dependency_converter.h | ||
| dependent_expr_state_tactic.h | ||
| goal.cpp | ||
| goal.h | ||
| goal_num_occurs.cpp | ||
| goal_num_occurs.h | ||
| goal_proof_converter.h | ||
| goal_shared_occs.cpp | ||
| goal_shared_occs.h | ||
| goal_util.cpp | ||
| goal_util.h | ||
| probe.cpp | ||
| probe.h | ||
| tactic.cpp | ||
| tactic.h | ||
| tactic_exception.h | ||
| tactical.cpp | ||
| tactical.h | ||
| user_propagator_base.h | ||