mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
add filter cubes parameter
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a3e651156a
commit
c5a30285a8
|
@ -443,8 +443,9 @@ private:
|
|||
// extract cubes.
|
||||
cubes.reset();
|
||||
s.set_cube_params();
|
||||
unsigned cutoff = UINT_MAX;
|
||||
while (true) {
|
||||
expr_ref_vector c = s.get_solver().cube(vars, UINT_MAX); // TBD tune this
|
||||
expr_ref_vector c = s.get_solver().cube(vars, cutoff);
|
||||
if (c.empty()) {
|
||||
report_undef(s);
|
||||
return;
|
||||
|
@ -618,6 +619,11 @@ public:
|
|||
return pp.conquer_batch_size();
|
||||
}
|
||||
|
||||
bool filter_cubes() const {
|
||||
parallel_params pp(m_params);
|
||||
return pp.filter_cubes();
|
||||
}
|
||||
|
||||
void cleanup() {
|
||||
m_queue.reset();
|
||||
init();
|
||||
|
|
|
@ -7,4 +7,5 @@ def_module_params('parallel',
|
|||
('conquer_batch_size', UINT, 1000, 'number of cubes to batch together for fast conquer'),
|
||||
('inprocess.max', UINT, 2, 'maximal number of inprocessing steps during simplification'),
|
||||
('restart.max', UINT, 100, 'maximal number of restarts during conquer phase'),
|
||||
('filter_cubes', BOOL, False, 'filter cubes using a short running check'),
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue