mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 22:35:45 +00:00
mark assumption literals to be skolem to hide them from models #2406
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4b6a7371dd
commit
5820b16800
4 changed files with 21 additions and 5 deletions
|
@ -1820,6 +1820,12 @@ public:
|
|||
arity, domain);
|
||||
}
|
||||
|
||||
func_decl * mk_skolem_const_decl(symbol const& name, sort* s) {
|
||||
func_decl_info info;
|
||||
info.set_skolem(true);
|
||||
return mk_func_decl(name, static_cast<unsigned>(0), nullptr, s, info);
|
||||
}
|
||||
|
||||
func_decl * mk_const_decl(const char* name, sort * s) {
|
||||
return mk_func_decl(symbol(name), static_cast<unsigned>(0), nullptr, s);
|
||||
}
|
||||
|
@ -1898,6 +1904,10 @@ public:
|
|||
return mk_app(decl, static_cast<unsigned>(0), static_cast<expr**>(nullptr));
|
||||
}
|
||||
|
||||
app * mk_skolem_const(symbol const & name, sort * s) {
|
||||
return mk_const(mk_skolem_const_decl(name, s));
|
||||
}
|
||||
|
||||
app * mk_const(symbol const & name, sort * s) {
|
||||
return mk_const(mk_const_decl(name, s));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue