mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-04 05:11:22 +00:00
ezsat: Rename files and class for ezCmdlineSat
This commit is contained in:
parent
316ec3b0b4
commit
e16cf967fd
3 changed files with 10 additions and 10 deletions
|
@ -1,13 +1,13 @@
|
|||
|
||||
#include "ezcommand.h"
|
||||
#include "ezcmdline.h"
|
||||
|
||||
#include "../../kernel/yosys.h"
|
||||
|
||||
ezSATCommand::ezSATCommand(const std::string &cmd) : command(cmd) {}
|
||||
ezCmdlineSAT::ezCmdlineSAT(const std::string &cmd) : command(cmd) {}
|
||||
|
||||
ezSATCommand::~ezSATCommand() {}
|
||||
ezCmdlineSAT::~ezCmdlineSAT() {}
|
||||
|
||||
bool ezSATCommand::solver(const std::vector<int> &modelExpressions, std::vector<bool> &modelValues, const std::vector<int> &assumptions)
|
||||
bool ezCmdlineSAT::solver(const std::vector<int> &modelExpressions, std::vector<bool> &modelValues, const std::vector<int> &assumptions)
|
||||
{
|
||||
#if !defined(YOSYS_DISABLE_SPAWN)
|
||||
const std::string tempdir_name = Yosys::make_temp_dir(Yosys::get_base_tmpdir() + "/yosys-sat-XXXXXX");
|
||||
|
@ -85,4 +85,4 @@ bool ezSATCommand::solver(const std::vector<int> &modelExpressions, std::vector<
|
|||
#else
|
||||
Yosys::log_error("SAT solver command not available in this build!\n");
|
||||
#endif
|
||||
}
|
||||
}
|
|
@ -22,14 +22,14 @@
|
|||
|
||||
#include "ezsat.h"
|
||||
|
||||
class ezSATCommand : public ezSAT
|
||||
class ezCmdlineSAT : public ezSAT
|
||||
{
|
||||
private:
|
||||
std::string command;
|
||||
|
||||
public:
|
||||
ezSATCommand(const std::string &cmd);
|
||||
virtual ~ezSATCommand();
|
||||
ezCmdlineSAT(const std::string &cmd);
|
||||
virtual ~ezCmdlineSAT();
|
||||
bool solver(const std::vector<int> &modelExpressions, std::vector<bool> &modelValues, const std::vector<int> &assumptions) override;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue