Skip to content

Commit

Permalink
final renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
kondylidou committed Jan 31, 2025
1 parent 4a8ce59 commit 824b5fb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,8 @@ libcvc5_add_sources(
theory/quantifiers/lazy_trie.h
theory/quantifiers/master_eq_notify.cpp
theory/quantifiers/master_eq_notify.h
theory/quantifiers/mbqi_fast_sygus.cpp
theory/quantifiers/mbqi_fast_sygus.h
theory/quantifiers/mbqi_enum.cpp
theory/quantifiers/mbqi_enum.h
theory/quantifiers/oracle_checker.cpp
theory/quantifiers/oracle_checker.h
theory/quantifiers/oracle_engine.cpp
Expand Down
4 changes: 2 additions & 2 deletions src/theory/quantifiers/inst_strategy_mbqi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "expr/skolem_manager.h"
#include "expr/subs.h"
#include "printer/smt2/smt2_printer.h"
#include "theory/quantifiers/mbqi_fast_sygus.h"
#include "theory/quantifiers/mbqi_enum.h"
#include "theory/quantifiers/first_order_model.h"
#include "theory/quantifiers/instantiate.h"
#include "theory/quantifiers/quantifiers_rewriter.h"
Expand Down Expand Up @@ -52,7 +52,7 @@ InstStrategyMbqi::InstStrategyMbqi(Env& env,

if (options().quantifiers.mbqiEnum)
{
d_msenum.reset(new MbqiFastSygus(env, *this));
d_msenum.reset(new mbqiEnum(env, *this));
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/theory/quantifiers/inst_strategy_mbqi.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SolverEngine;
namespace theory {
namespace quantifiers {

class MbqiFastSygus;
class mbqiEnum;

/**
* InstStrategyMbqi
Expand All @@ -47,7 +47,7 @@ class MbqiFastSygus;
*/
class InstStrategyMbqi : public QuantifiersModule
{
friend class MbqiFastSygus;
friend class mbqiEnum;
public:
InstStrategyMbqi(Env& env,
QuantifiersState& qs,
Expand Down Expand Up @@ -139,7 +139,7 @@ class InstStrategyMbqi : public QuantifiersModule
/** Kinds that cannot appear in queries */
std::unordered_set<Kind, kind::KindHashFunction> d_nonClosedKinds;
/** Submodule for sygus enum */
std::unique_ptr<MbqiFastSygus> d_msenum;
std::unique_ptr<mbqiEnum> d_msenum;
/* Set of global ground terms in assertions (outside of quantifiers). */
context::CDHashSet<Node> d_globalSyms;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* A class for augmenting model-based instantiations via fast sygus enumeration.
*/

#include "theory/quantifiers/mbqi_fast_sygus.h"
#include "theory/quantifiers/mbqi_enum.h"

#include "expr/node_algorithm.h"
#include "expr/skolem_manager.h"
Expand Down Expand Up @@ -184,12 +184,12 @@ bool MQuantInfo::shouldEnumerate(const TypeNode& tn)
return true;
}

MbqiFastSygus::MbqiFastSygus(Env& env, InstStrategyMbqi& parent)
mbqiEnum::mbqiEnum(Env& env, InstStrategyMbqi& parent)
: EnvObj(env), d_parent(parent)
{
}

MQuantInfo& MbqiFastSygus::getOrMkQuantInfo(const Node& q)
MQuantInfo& mbqiEnum::getOrMkQuantInfo(const Node& q)
{
auto [it, inserted] = d_qinfo.try_emplace(q);
if (inserted)
Expand All @@ -199,7 +199,7 @@ MQuantInfo& MbqiFastSygus::getOrMkQuantInfo(const Node& q)
return it->second;
}

bool MbqiFastSygus::constructInstantiation(
bool mbqiEnum::constructInstantiation(
const Node& q,
const Node& query,
const std::vector<Node>& vars,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

#include "cvc5_private.h"

#ifndef CVC5__THEORY__QUANTIFIERS__MBQI_FAST_SYGUS_H
#define CVC5__THEORY__QUANTIFIERS__MBQI_FAST_SYGUS_H
#ifndef CVC5__THEORY__QUANTIFIERS__MBQI_ENUM_H
#define CVC5__THEORY__QUANTIFIERS__MBQI_ENUM_H

#include <map>
#include <unordered_map>
Expand Down Expand Up @@ -108,14 +108,14 @@ class MQuantInfo
};

/**
* MbqiFastSygus, which postprocesses an instantiation from MBQI based on
* mbqiEnum, which postprocesses an instantiation from MBQI based on
* sygus enumeration.
*/
class MbqiFastSygus : protected EnvObj
class mbqiEnum : protected EnvObj
{
public:
MbqiFastSygus(Env& env, InstStrategyMbqi& parent);
~MbqiFastSygus() {}
mbqiEnum(Env& env, InstStrategyMbqi& parent);
~mbqiEnum() {}

/**
* Updates mvs to the desired instantiation of q. Returns true if successful.
Expand Down Expand Up @@ -158,4 +158,4 @@ class MbqiFastSygus : protected EnvObj
} // namespace theory
} // namespace cvc5::internal

#endif /* CVC5__THEORY__QUANTIFIERS__MBQI_FAST_SYGUS_H */
#endif /* CVC5__THEORY__QUANTIFIERS__MBQI_ENUM_H */
2 changes: 1 addition & 1 deletion src/theory/quantifiers/quantifiers_modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "theory/quantifiers/inst_strategy_mbqi.h"
#include "theory/quantifiers/inst_strategy_pool.h"
#include "theory/quantifiers/inst_strategy_sub_conflict.h"
#include "theory/quantifiers/mbqi_fast_sygus.h"
#include "theory/quantifiers/mbqi_enum.h"
#include "theory/quantifiers/oracle_engine.h"
#include "theory/quantifiers/quant_conflict_find.h"
#include "theory/quantifiers/quant_split.h"
Expand Down

0 comments on commit 824b5fb

Please sign in to comment.