mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
output background model in duality counterexamples
This commit is contained in:
parent
ee4b9d46f1
commit
dfae0c5109
4 changed files with 34 additions and 4 deletions
|
@ -257,7 +257,9 @@ namespace Duality {
|
|||
};
|
||||
|
||||
|
||||
public:
|
||||
model dualModel;
|
||||
private:
|
||||
literals dualLabels;
|
||||
std::list<stack_entry> stack;
|
||||
std::vector<Term> axioms; // only saved here for printing purposes
|
||||
|
|
|
@ -248,6 +248,8 @@ namespace Duality {
|
|||
RPFP::Term RPFP::Localize(Edge *e, const Term &t){
|
||||
timer_start("Localize");
|
||||
hash_map<ast,Term> memo;
|
||||
if(e->F.IndParams.size() > 0 && e->varMap.empty())
|
||||
SetEdgeMaps(e); // TODO: why is this needed?
|
||||
Term res = LocalizeRec(e,memo,t);
|
||||
timer_stop("Localize");
|
||||
return res;
|
||||
|
|
|
@ -688,10 +688,10 @@ namespace Duality {
|
|||
|
||||
void show() const;
|
||||
|
||||
unsigned num_consts() const;
|
||||
unsigned num_funcs() const;
|
||||
func_decl get_const_decl(unsigned i) const;
|
||||
func_decl get_func_decl(unsigned i) const;
|
||||
unsigned num_consts() const {return m_model.get()->get_num_constants();}
|
||||
unsigned num_funcs() const {return m_model.get()->get_num_functions();}
|
||||
func_decl get_const_decl(unsigned i) const {return func_decl(ctx(),m_model.get()->get_constant(i));}
|
||||
func_decl get_func_decl(unsigned i) const {return func_decl(ctx(),m_model.get()->get_function(i));}
|
||||
unsigned size() const;
|
||||
func_decl operator[](unsigned i) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue