mirror of
https://github.com/Z3Prover/z3
synced 2025-10-09 09:21:56 +00:00
adaptive psat cutoff
Signed-off-by: Miguel Angelo Da Terra Neves <t-mineve@microsoft.com>
This commit is contained in:
parent
d8a62dff73
commit
38751430df
5 changed files with 34 additions and 23 deletions
|
@ -109,20 +109,23 @@ namespace sat {
|
|||
throw sat_param_exception("invalid reward type supplied: accepted heuristics are 'ternary', 'heuleu', 'unit' or 'heule_schur'");
|
||||
}
|
||||
|
||||
if (p.lookahead_cube_cutoff() == symbol("adaptive")) {
|
||||
m_lookahead_cube_cutoff = adaptive_cutoff;
|
||||
if (p.lookahead_cube_cutoff() == symbol("depth")) {
|
||||
m_lookahead_cube_cutoff = depth_cutoff;
|
||||
}
|
||||
else if (p.lookahead_cube_cutoff() == symbol("fixed_depth")) {
|
||||
m_lookahead_cube_cutoff = fixed_depth_cutoff;
|
||||
}
|
||||
else if (p.lookahead_cube_cutoff() == symbol("fixed_freevars")) {
|
||||
m_lookahead_cube_cutoff = fixed_freevars_cutoff;
|
||||
else if (p.lookahead_cube_cutoff() == symbol("freevars")) {
|
||||
m_lookahead_cube_cutoff = freevars_cutoff;
|
||||
}
|
||||
else if (p.lookahead_cube_cutoff() == symbol("psat")) {
|
||||
m_lookahead_cube_cutoff = psat_cutoff;
|
||||
}
|
||||
else if (p.lookahead_cube_cutoff() == symbol("adaptive_freevars")) {
|
||||
m_lookahead_cube_cutoff = adaptive_freevars_cutoff;
|
||||
}
|
||||
else if (p.lookahead_cube_cutoff() == symbol("adaptive_psat")) {
|
||||
m_lookahead_cube_cutoff = adaptive_psat_cutoff;
|
||||
}
|
||||
else {
|
||||
throw sat_param_exception("invalid cutoff type supplied: accepted cutoffs are 'adaptive', 'fixed_depth', 'fixed_freevars'");
|
||||
throw sat_param_exception("invalid cutoff type supplied: accepted cutoffs are 'depth', 'freevars', 'psat', 'adaptive_freevars' and 'adaptive_psat'");
|
||||
}
|
||||
m_lookahead_cube_fraction = p.lookahead_cube_fraction();
|
||||
m_lookahead_cube_depth = p.lookahead_cube_depth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue