mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
fix bug in getting decision count in duality
This commit is contained in:
parent
dfae0c5109
commit
ca38158966
1 changed files with 1 additions and 0 deletions
|
@ -296,6 +296,7 @@ expr context::make_quant(decl_kind op, const std::vector<sort> &_sorts, const st
|
|||
st.display(ss);
|
||||
std::string stats = ss.str();
|
||||
int pos = stats.find("decisions:");
|
||||
if(pos < 0) return 0; // for some reason, decisions are not reported if there are none
|
||||
pos += 10;
|
||||
int end = stats.find('\n',pos);
|
||||
std::string val = stats.substr(pos,end-pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue