}
}
-DatatypeConstructor::DatatypeConstructor(std::string name) :
- // We don't want to introduce a new data member, because eventually
- // we're going to be a constant stuffed inside a node. So we stow
- // the tester name away inside the constructor name until
- // resolution.
- d_name(name + '\0' + "is_" + name), // default tester name is "is_FOO"
- d_tester(),
- d_args() {
+DatatypeConstructor::DatatypeConstructor(std::string name)
+ : // We don't want to introduce a new data member, because eventually
+ // we're going to be a constant stuffed inside a node. So we stow
+ // the tester name away inside the constructor name until
+ // resolution.
+ d_name(name + '\0' + "is_" + name), // default tester name is "is_FOO"
+ d_tester(),
+ d_args(),
+ d_sygus_num_let_input_args(0) {
PrettyCheckArgument(name != "", name, "cannot construct a datatype constructor without a name");
}
-DatatypeConstructor::DatatypeConstructor(std::string name, std::string tester) :
- // We don't want to introduce a new data member, because eventually
- // we're going to be a constant stuffed inside a node. So we stow
- // the tester name away inside the constructor name until
- // resolution.
- d_name(name + '\0' + tester),
- d_tester(),
- d_args() {
+DatatypeConstructor::DatatypeConstructor(std::string name, std::string tester)
+ : // We don't want to introduce a new data member, because eventually
+ // we're going to be a constant stuffed inside a node. So we stow
+ // the tester name away inside the constructor name until
+ // resolution.
+ d_name(name + '\0' + tester),
+ d_tester(),
+ d_args(),
+ d_sygus_num_let_input_args(0) {
PrettyCheckArgument(name != "", name, "cannot construct a datatype constructor without a name");
PrettyCheckArgument(!tester.empty(), tester, "cannot construct a datatype constructor without a tester");
}
return d_name;
}
-inline Datatype::Datatype(std::string name, bool isCo) :
- d_name(name),
- d_params(),
- d_isCo(isCo),
- d_isTuple(false),
- d_isRecord(false),
- d_record(NULL),
- d_constructors(),
- d_resolved(false),
- d_self(),
- d_involvesExt(false),
- d_involvesUt(false),
- d_card(CardinalityUnknown()),
- d_well_founded(0) {
-}
-
-inline Datatype::Datatype(std::string name, const std::vector<Type>& params, bool isCo) :
- d_name(name),
- d_params(params),
- d_isCo(isCo),
- d_isTuple(false),
- d_isRecord(false),
- d_record(NULL),
- d_constructors(),
- d_resolved(false),
- d_self(),
- d_involvesExt(false),
- d_involvesUt(false),
- d_card(CardinalityUnknown()),
- d_well_founded(0) {
-}
+inline Datatype::Datatype(std::string name, bool isCo)
+ : d_name(name),
+ d_params(),
+ d_isCo(isCo),
+ d_isTuple(false),
+ d_isRecord(false),
+ d_record(NULL),
+ d_constructors(),
+ d_resolved(false),
+ d_self(),
+ d_involvesExt(false),
+ d_involvesUt(false),
+ d_sygus_allow_const(false),
+ d_sygus_allow_all(false),
+ d_card(CardinalityUnknown()),
+ d_well_founded(0) {}
+
+inline Datatype::Datatype(std::string name, const std::vector<Type>& params,
+ bool isCo)
+ : d_name(name),
+ d_params(params),
+ d_isCo(isCo),
+ d_isTuple(false),
+ d_isRecord(false),
+ d_record(NULL),
+ d_constructors(),
+ d_resolved(false),
+ d_self(),
+ d_involvesExt(false),
+ d_involvesUt(false),
+ d_sygus_allow_const(false),
+ d_sygus_allow_all(false),
+ d_card(CardinalityUnknown()),
+ d_well_founded(0) {}
inline std::string Datatype::getName() const throw() {
return d_name;