mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 12:35:59 +00:00
clause_builder::set_redundant
This commit is contained in:
parent
9b10733ebd
commit
29180e7d0b
4 changed files with 15 additions and 6 deletions
|
@ -20,10 +20,6 @@ namespace polysat {
|
|||
class signed_constraint;
|
||||
class simplify_clause;
|
||||
|
||||
class clause;
|
||||
using clause_ref = ref<clause>;
|
||||
using clause_ref_vector = sref_vector<clause>;
|
||||
|
||||
/// Disjunction of constraints represented by boolean literals
|
||||
// NB code review:
|
||||
// right, ref-count is unlikely the right mechanism.
|
||||
|
@ -31,11 +27,14 @@ namespace polysat {
|
|||
// and deleted when they exist the arena.
|
||||
//
|
||||
class clause {
|
||||
public:
|
||||
static inline const bool redundant_default = true;
|
||||
private:
|
||||
friend class constraint_manager;
|
||||
friend class simplify_clause;
|
||||
|
||||
unsigned m_ref_count = 0; // TODO: remove refcount once we confirm it's not needed anymore
|
||||
bool m_redundant = true;
|
||||
bool m_redundant = redundant_default;
|
||||
sat::literal_vector m_literals;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue