3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 07:45:46 +00:00
z3/src/sat/sat_cleaner.h
Nikolaj Bjorner 4bc044c982 update header guards to be C++ style. Fixes issue #9
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-08 23:18:40 -07:00

53 lines
890 B
C++

/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
sat_cleaner.h
Abstract:
Eliminate satisfied clauses, and literals assigned to false.
Author:
Leonardo de Moura (leonardo) 2011-05-24.
Revision History:
--*/
#ifndef SAT_CLEANER_H_
#define SAT_CLEANER_H_
#include"sat_types.h"
#include"statistics.h"
namespace sat {
class cleaner {
struct report;
solver & s;
unsigned m_last_num_units;
int m_cleanup_counter;
// stats
unsigned m_elim_clauses;
unsigned m_elim_literals;
void cleanup_watches();
void cleanup_clauses(clause_vector & cs);
public:
cleaner(solver & s);
bool operator()(bool force = false);
void collect_statistics(statistics & st) const;
void reset_statistics();
void dec() { m_cleanup_counter--; }
};
};
#endif