mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
aiger2: Adjust typing
This commit is contained in:
parent
72d65063c3
commit
2a3e907da8
|
@ -125,7 +125,7 @@ struct Index {
|
||||||
|
|
||||||
bool const_folding = true;
|
bool const_folding = true;
|
||||||
bool strashing = false;
|
bool strashing = false;
|
||||||
dict<std::pair<int, int>, int> cache;
|
dict<std::pair<Lit, Lit>, Lit> cache;
|
||||||
|
|
||||||
Lit AND(Lit a, Lit b)
|
Lit AND(Lit a, Lit b)
|
||||||
{
|
{
|
||||||
|
@ -602,7 +602,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_header() {
|
void write_header() {
|
||||||
log_assert(lit_counter == (ninputs + nlatches + nands) * 2 + 2);
|
log_assert(lit_counter == (Lit) (ninputs + nlatches + nands) * 2 + 2);
|
||||||
|
|
||||||
char buf[128];
|
char buf[128];
|
||||||
snprintf(buf, sizeof(buf) - 1, "aig %08d %08d %08d %08d %08d\n",
|
snprintf(buf, sizeof(buf) - 1, "aig %08d %08d %08d %08d %08d\n",
|
||||||
|
|
Loading…
Reference in a new issue