sat: factor the creation of temporary files
* src/misc/satsolver.hh, src/misc/satsolver.cc: Present the SAT solver as an object with a stream interface, to prepare for a better implementation. * src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtgbasat.cc: Adjust to the new interface, removing all the handling of temporary files. * src/tgbatest/readsat.cc: Adjust.
This commit is contained in:
parent
1853bdd53b
commit
9c98975c19
5 changed files with 110 additions and 168 deletions
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
spot::sat_solution sol = spot::satsolver_get_solution("-");
|
||||
for (spot::sat_solution::const_iterator i = sol.begin();
|
||||
spot::satsolver::solution sol = spot::satsolver_get_solution("-");
|
||||
for (spot::satsolver::solution::const_iterator i = sol.begin();
|
||||
i != sol.end(); ++i)
|
||||
std::cout << ' ' << *i;
|
||||
std::cout << '\n';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue