mirror of
https://github.com/Z3Prover/z3
synced 2025-05-09 00:35:47 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
60
lib/sat_asymm_branch.h
Normal file
60
lib/sat_asymm_branch.h
Normal file
|
@ -0,0 +1,60 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
sat_asymm_branch.h
|
||||
|
||||
Abstract:
|
||||
|
||||
SAT solver asymmetric branching
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2011-05-30.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _SAT_ASYMM_BRANCH_H_
|
||||
#define _SAT_ASYMM_BRANCH_H_
|
||||
|
||||
#include"sat_types.h"
|
||||
#include"statistics.h"
|
||||
#include"params.h"
|
||||
|
||||
namespace sat {
|
||||
class solver;
|
||||
|
||||
class asymm_branch {
|
||||
struct report;
|
||||
|
||||
solver & s;
|
||||
int m_counter;
|
||||
|
||||
// config
|
||||
bool m_asymm_branch;
|
||||
unsigned m_asymm_branch_rounds;
|
||||
unsigned m_asymm_branch_limit;
|
||||
|
||||
// stats
|
||||
unsigned m_elim_literals;
|
||||
|
||||
bool process(clause & c);
|
||||
public:
|
||||
asymm_branch(solver & s, params_ref const & p);
|
||||
|
||||
void operator()(bool force = false);
|
||||
|
||||
void updt_params(params_ref const & p);
|
||||
static void collect_param_descrs(param_descrs & d);
|
||||
|
||||
void collect_statistics(statistics & st);
|
||||
void reset_statistics();
|
||||
|
||||
void dec(unsigned c) { m_counter -= c; }
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue