1 #ifndef __TYPE_HPP_DEFINED__ 2 #define __TYPE_HPP_DEFINED__ 40 bool isMem(
int aw = -1,
int dw = -1)
const {
46 bool isFunc(
int rw = -1, std::vector<int> aw = {})
const {
49 }
else if (rw == -1) {
51 }
else if (aw.size() !=
argsWidth.size()) {
54 for (
unsigned i = 0; i != aw.size(); i++) {
74 std::ostream&
operator<<(std::ostream& out, NodeType
const& ntype);
77 #endif // __TYPE_HPP_DEFINED__ bool isBool() const
Definition: type.hpp:33
int dataWidth
Definition: type.hpp:15
bool isFunc(int rw=-1, std::vector< int > aw={}) const
Definition: type.hpp:46
enum ilasynth::NodeType::Type type
NodeType()
Definition: type.hpp:20
int bitWidth
Definition: type.hpp:13
bool isMem(int aw=-1, int dw=-1) const
Definition: type.hpp:40
size_t hash_val
Definition: type.hpp:17
static NodeType getFunc(int rw, const std::vector< int > &aw)
bool operator==(const NodeType &t) const
bool operator!(void) const
static NodeType getBitvector(int w)
static NodeType getMem(int aw, int dw)
Definition: abstraction.hpp:21
static NodeType getBool()
bool operator!=(const NodeType &t) const
Definition: type.hpp:64
std::vector< int > argsWidth
Definition: type.hpp:16
int addrWidth
Definition: type.hpp:14
Type
Definition: type.hpp:12
bool isBitvector(int width=-1) const
Definition: type.hpp:36
std::ostream & operator<<(std::ostream &out, const Node &that)