mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-04 02:10:24 +00:00
Added ezSAT::keep_cnf() and ezSAT::non_incremental()
This commit is contained in:
parent
ade659e617
commit
b1d520949b
5 changed files with 71 additions and 8 deletions
|
@ -64,6 +64,7 @@ void test_simple()
|
|||
printf("==== %s ====\n\n", __PRETTY_FUNCTION__);
|
||||
|
||||
ezMiniSAT sat;
|
||||
sat.non_incremental();
|
||||
sat.assume(sat.OR("A", "B"));
|
||||
sat.assume(sat.NOT(sat.AND("A", "B")));
|
||||
test(sat);
|
||||
|
@ -121,6 +122,8 @@ void test_xorshift32()
|
|||
printf("==== %s ====\n\n", __PRETTY_FUNCTION__);
|
||||
|
||||
ezMiniSAT sat;
|
||||
sat.keep_cnf();
|
||||
|
||||
xorshift128 rng;
|
||||
|
||||
std::vector<int> bits = sat.vec_var("i", 32);
|
||||
|
@ -137,6 +140,9 @@ void test_xorshift32()
|
|||
test_xorshift32_try(sat, rng());
|
||||
test_xorshift32_try(sat, rng());
|
||||
test_xorshift32_try(sat, rng());
|
||||
|
||||
sat.printDIMACS(stdout, true);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue