mirror of
https://github.com/Z3Prover/z3
synced 2025-06-07 14:43:23 +00:00
add parameter descriptions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
583dae2e27
commit
b169292743
14 changed files with 737 additions and 25 deletions
|
@ -533,6 +533,22 @@ public:
|
|||
out << "\n";
|
||||
d->display(out, 4, false);
|
||||
}
|
||||
void display_module_markdown(std::ostream & out, char const* module_name) {
|
||||
lock_guard lock(*gparams_mux);
|
||||
param_descrs * d = nullptr;
|
||||
if (!get_module_param_descr(module_name, d)) {
|
||||
std::stringstream strm;
|
||||
strm << "unknown module '" << module_name << "'";
|
||||
throw exception(std::move(strm).str());
|
||||
}
|
||||
out << "## Module " << module_name << "\n\n";
|
||||
char const * descr = nullptr;
|
||||
if (get_module_descrs().find(module_name, descr)) {
|
||||
out << "Description: " << descr;
|
||||
}
|
||||
out << "\n";
|
||||
d->display_markdown(out);
|
||||
}
|
||||
|
||||
param_descrs const& get_global_param_descrs() {
|
||||
lock_guard lock(*gparams_mux);
|
||||
|
@ -643,6 +659,11 @@ void gparams::display_module(std::ostream & out, char const * module_name) {
|
|||
g_imp->display_module(out, module_name);
|
||||
}
|
||||
|
||||
void gparams::display_module_markdown(std::ostream & out, char const * module_name) {
|
||||
SASSERT(g_imp);
|
||||
g_imp->display_module_markdown(out, module_name);
|
||||
}
|
||||
|
||||
void gparams::display_parameter(std::ostream & out, char const * name) {
|
||||
SASSERT(g_imp);
|
||||
g_imp->display_parameter(out, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue