mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-26 04:56:05 +00:00
ezSAT: Added frozen_literal() API
This commit is contained in:
parent
895e9fc70c
commit
d5bd93997c
2 changed files with 16 additions and 0 deletions
|
@ -67,6 +67,20 @@ int ezSAT::literal(const std::string &name)
|
|||
return literalsCache.at(name);
|
||||
}
|
||||
|
||||
int ezSAT::frozen_literal()
|
||||
{
|
||||
int id = literal();
|
||||
freeze(id);
|
||||
return id;
|
||||
}
|
||||
|
||||
int ezSAT::frozen_literal(const std::string &name)
|
||||
{
|
||||
int id = literal(name);
|
||||
freeze(id);
|
||||
return id;
|
||||
}
|
||||
|
||||
int ezSAT::expression(OpId op, int a, int b, int c, int d, int e, int f)
|
||||
{
|
||||
std::vector<int> args(6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue