Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kondylidou committed Jan 31, 2025
1 parent b831d23 commit 4a8ce59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/smt/set_defaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,9 +1437,9 @@ void SetDefaults::setDefaultsQuantifiers(const LogicInfo& logic,
SET_AND_NOTIFY(quantifiers, cegqi, false, "instMaxLevel");
}
// enable MBQI if --mbqi-enum is provided
if (opts.quantifiers.mbqiFastSygus)
if (opts.quantifiers.mbqiEnum)
{
SET_AND_NOTIFY_IF_NOT_USER(quantifiers, mbqi, true, "mbqiFastSygus");
SET_AND_NOTIFY_IF_NOT_USER(quantifiers, mbqi, true, "mbqiEnum");
}
if (opts.quantifiers.mbqi)
{
Expand Down
6 changes: 3 additions & 3 deletions src/theory/quantifiers/inst_strategy_mbqi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ InstStrategyMbqi::InstStrategyMbqi(Env& env,
// may appear in certain models e.g. strings of excessive length
d_nonClosedKinds.insert(Kind::WITNESS);

if (options().quantifiers.mbqiFastSygus)
if (options().quantifiers.mbqiEnum)
{
d_msenum.reset(new MbqiFastSygus(env, *this));
}
Expand Down Expand Up @@ -496,7 +496,7 @@ Node InstStrategyMbqi::convertToQuery(
Node InstStrategyMbqi::modelValueToQuery(const Node& t)
{
FirstOrderModel* fm = d_treg.getModel();
if (!options().quantifiers.mbqiFastSygus)
if (!options().quantifiers.mbqiEnum)
{
return fm->getValue(t);
}
Expand Down Expand Up @@ -542,7 +542,7 @@ void InstStrategyMbqi::modelValueFromQuery(
const std::map<Node, Node>& mvToFreshVar)
{
getModelFromSubsolver(smt, vars, mvs);
if (options().quantifiers.mbqiFastSygus)
if (options().quantifiers.mbqiEnum)
{
std::vector<Node> smvs(mvs);
if (d_msenum->constructInstantiation(q, query, vars, smvs, mvToFreshVar))
Expand Down
6 changes: 3 additions & 3 deletions src/theory/quantifiers/mbqi_fast_sygus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void MVarInfo::initialize(Env& env,
trules.insert(trules.end(), vs.begin(), vs.end());
}
// include free symbols from body of quantified formula if applicable
if (env.getOptions().quantifiers.mbqiFastSygusFreeSymsGrammar)
if (env.getOptions().quantifiers.mbqiEnumFreeSymsGrammar)
{
std::unordered_set<Node> syms;
expr::getSymbols(q[1], syms);
Expand Down Expand Up @@ -144,14 +144,14 @@ void MQuantInfo::initialize(Env& env, InstStrategyMbqi& parent, const Node& q)
{
d_nindices.push_back(index);
// include variables defined in terms of others if applicable
if (env.getOptions().quantifiers.mbqiFastSygusExtVarsGrammar)
if (env.getOptions().quantifiers.mbqiEnumExtVarsGrammar)
{
etrules.push_back(v);
}
}
}
// include the global symbols if applicable
if (env.getOptions().quantifiers.mbqiFastSygusGlobalSymGrammar)
if (env.getOptions().quantifiers.mbqiEnumGlobalSymGrammar)
{
const context::CDHashSet<Node>& gsyms = parent.getGlobalSyms();
for (const Node& v : gsyms)
Expand Down

0 comments on commit 4a8ce59

Please sign in to comment.