twaalgos: Improve data storage in SAT-minimization
* spot/misc/satsolver.hh: Make solver return vector<bool> instead of vector<int>. * spot/misc/satsolver.cc: Update code. * spot/priv/Makefile.am: Add satcommon.* * spot/priv/satcommon.hh: Declare helper class and factorize some duplicate code of dt*asat.cc * spot/priv/satcommon.cc: Implement helper class and factorize some duplicate code of dt*asat.cc * spot/twaalgos/dtbasat.cc: Declare helper, implement some functions in dict struct and update code. * spot/twaalgos/dtwasat.cc: Declare helper, implement some functions in dict struct and update code. * tests/core/readsat.cc: Update tests. * tests/core/satmin.test: Typo. * tests/core/satmin2.test: Update an expected result.
This commit is contained in:
parent
79f4c8e0d7
commit
9acd7370b2
10 changed files with 1282 additions and 1004 deletions
|
|
@ -18,12 +18,13 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <spot/misc/satsolver.hh>
|
||||
|
||||
int main()
|
||||
{
|
||||
spot::satsolver::solution sol = spot::satsolver_get_solution("-");
|
||||
for (spot::satsolver::solution::const_iterator i = sol.begin();
|
||||
std::vector<int> sol = spot::satsolver_get_solution("-");
|
||||
for (std::vector<int>::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