Skip to content

Commit

Permalink
renamed query_local() overload
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKlx committed Jul 16, 2024
1 parent 39663a6 commit 4948797
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/hal_core/netlist/boolean_function/solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace hal
* @param[in] smt2 - The SMT solver query as smt2 string.
* @returns OK() and the result on success, Err() otherwise.
*/
static Result<SolverResult> query_local(const QueryConfig& config, const std::string& smt2);
static Result<SolverResult> query_local_with_smt2(const QueryConfig& config, const std::string& smt2);

/**
* Queries a remote SMT solver with the specified query configuration.
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_identification/python/python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ namespace hal
{

#ifdef PYBIND11_MODULE
PYBIND11_MODULE(hawkeye, m)
PYBIND11_MODULE(module_identification, m)
{
m.doc() = "Plugin for module classification against a library of predefined types.";
#else
PYBIND11_PLUGIN(hawkeye)
PYBIND11_PLUGIN(module_identification)
{
py::module m("hawkeye", "Plugin for module classification against a library of predefined types.");
py::module m("module_identification", "Plugin for module classification against a library of predefined types.");
#endif // ifdef PYBIND11_MODULE

py::class_<ModuleIdentificationPlugin, RawPtrWrapper<ModuleIdentificationPlugin>, BasePluginInterface> py_module_identification_plugin(
Expand Down
2 changes: 1 addition & 1 deletion plugins/z3_utils/src/netlist_comparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ namespace hal

s.add(bf_a != bf_b);
auto smt2_str = s.to_smt2();
auto query_res = SMT::Solver::query_local(config, smt2_str);
auto query_res = SMT::Solver::query_local_with_smt2(config, smt2_str);
if (query_res.is_error())
{
return ERR_APPEND(query_res.get_error(),
Expand Down
4 changes: 2 additions & 2 deletions src/netlist/boolean_function/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ namespace hal
}

auto input_str = input.get();
return query_local(config, input_str);
return query_local_with_smt2(config, input_str);
}

Result<SolverResult> Solver::query_local(const QueryConfig& config, const std::string& smt2)
Result<SolverResult> Solver::query_local_with_smt2(const QueryConfig& config, const std::string& smt2)
{
auto query = spec2query.at({config.solver, config.call})(smt2, config);
if (query.is_ok())
Expand Down
4 changes: 2 additions & 2 deletions src/python_bindings/bindings/smt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ namespace hal
)");

py_smt_solver.def_static(
"query_local",
"query_local_with_smt2",
[](const SMT::QueryConfig& config, const std::string& smt2) -> std::optional<SMT::SolverResult> {
auto res = SMT::Solver::query_local(config, smt2);
auto res = SMT::Solver::query_local_with_smt2(config, smt2);
if (res.is_ok())
{
return res.get();
Expand Down

0 comments on commit 4948797

Please sign in to comment.