// formate the state of the query
std::ostringstream os;
+ bool currentPrint = b->UserFlags.print_counterexample_flag;
b->UserFlags.print_counterexample_flag = true;
os << "COUNTEREXAMPLE BEGIN: \n";
ce->PrintCounterExample(true,os);
os << "COUNTEREXAMPLE END: \n";
+ b->UserFlags.print_counterexample_flag = currentPrint;
// convert to a c buffer
string s = os.str();
bmstar b = (bmstar)(((stpstar)vc)->bm);
ctrexamplestar ce = (ctrexamplestar)(((stpstar)vc)->Ctr_Example);
- b->UserFlags.print_counterexample_flag = true;
+ bool currentPrint = b->UserFlags.print_counterexample_flag;
+ b->UserFlags.print_counterexample_flag = true;
cout << "COUNTEREXAMPLE BEGIN: \n";
ce->PrintCounterExample(true);
cout << "COUNTEREXAMPLE END: \n";
+ b->UserFlags.print_counterexample_flag = currentPrint;
}
// //! Return the counterexample after a failed query.
bmstar b = (bmstar)(((stpstar)vc)->bm);
ctrexamplestar ce = (ctrexamplestar)(((stpstar)vc)->Ctr_Example);
+ bool currentPrint = b->UserFlags.print_counterexample_flag;
b->UserFlags.print_counterexample_flag = true;
os << "COUNTEREXAMPLE BEGIN: \n";
ce->PrintCounterExample(true, os);
os << "COUNTEREXAMPLE END: \n";
+ b->UserFlags.print_counterexample_flag = currentPrint;
}
const char* exprName(Expr e){