mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
fixed bug in duality logging
This commit is contained in:
parent
9cba5d7c85
commit
8320144af0
1 changed files with 10 additions and 8 deletions
|
@ -89,15 +89,17 @@ namespace Duality {
|
||||||
if(memo.find(t) != memo.end())
|
if(memo.find(t) != memo.end())
|
||||||
return;
|
return;
|
||||||
memo.insert(t);
|
memo.insert(t);
|
||||||
decl_kind k = t.decl().get_decl_kind();
|
if(t.is_app()){
|
||||||
if(k == And || k == Or || k == Not || k == Implies || k == Iff){
|
decl_kind k = t.decl().get_decl_kind();
|
||||||
ops++;
|
if(k == And || k == Or || k == Not || k == Implies || k == Iff){
|
||||||
int nargs = t.num_args();
|
ops++;
|
||||||
for(int i = 0; i < nargs; i++)
|
int nargs = t.num_args();
|
||||||
SummarizeRec(memo,lits,ops,t.arg(i));
|
for(int i = 0; i < nargs; i++)
|
||||||
|
SummarizeRec(memo,lits,ops,t.arg(i));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
lits.push_back(t);
|
||||||
lits.push_back(t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Z3User::CumulativeDecisions(){
|
int Z3User::CumulativeDecisions(){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue