mirror of
https://github.com/Z3Prover/z3
synced 2025-05-09 16:55:47 +00:00
Add model.user_functions (default true) to control whether user functions are added to the model.
This commit is contained in:
parent
a24a922688
commit
d790523c59
3 changed files with 7 additions and 1 deletions
|
@ -1815,6 +1815,9 @@ void cmd_context::display_model(model_ref& mdl) {
|
|||
}
|
||||
|
||||
void cmd_context::add_declared_functions(model& mdl) {
|
||||
model_params p;
|
||||
if (!p.user_functions())
|
||||
return;
|
||||
for (auto const& kv : m_func_decls) {
|
||||
func_decl* f = kv.m_value.first();
|
||||
if (f->get_family_id() == null_family_id && !mdl.has_interpretation(f)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue