Skip to content

Commit

Permalink
aiger2: Try to fix VS build
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Oct 7, 2024
1 parent d0a11e2 commit 72f0fea
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions backends/aiger2/aiger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ PRIVATE_NAMESPACE_BEGIN
#define KNOWN_OPS BITWISE_OPS, REDUCE_OPS, LOGIC_OPS, GATE_OPS, ID($pos), CMP_OPS, \
ID($pmux), ID($bmux) /*, ARITH_OPS*/

template<typename Writer, typename Lit>
template<typename Writer, typename Lit, Lit CFALSE, Lit CTRUE>
struct Index {
static constexpr Lit CFALSE = Writer::CONST_FALSE;
static constexpr Lit CTRUE = Writer::CONST_TRUE;

struct HierCursor;
struct ModuleInfo {
Module *module;
Expand Down Expand Up @@ -664,7 +661,7 @@ struct Index {
}
};

struct AigerWriter : Index<AigerWriter, unsigned int> {
struct AigerWriter : Index<AigerWriter, unsigned int, 0, 1> {
typedef unsigned int Lit;

const static Lit CONST_FALSE = 0;
Expand Down Expand Up @@ -804,7 +801,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
}
};

struct XAigerAnalysis : Index<XAigerAnalysis, int> {
struct XAigerAnalysis : Index<XAigerAnalysis, int, 0, 0> {
const static int CONST_FALSE = 0;
const static int CONST_TRUE = 0;
const static constexpr int EMPTY_LIT = -1;
Expand Down

0 comments on commit 72f0fea

Please sign in to comment.