static OutputLanguage variantToLanguage(Variant v);
-static string smtKindString(Kind k, Variant v);
-
/** returns whether the variant is smt-lib 2.6 or greater */
bool isVariant_2_6(Variant v) { return v == smt2_6_variant; }
toStream(out, nasc, toDepth);
}
-static string smtKindString(Kind k, Variant v)
+std::string Smt2Printer::smtKindString(Kind k, Variant v)
{
switch(k) {
// builtin theory
case kind::STRING_STOI: return "str.to_int";
case kind::STRING_IN_REGEXP: return "str.in_re";
case kind::STRING_TO_REGEXP: return "str.to_re";
- case kind::REGEXP_EMPTY: return "re.nostr";
+ case kind::REGEXP_EMPTY: return "re.none";
case kind::REGEXP_SIGMA: return "re.allchar";
case kind::REGEXP_CONCAT: return "re.++";
case kind::REGEXP_UNION: return "re.union";
void toStreamCmdDeclarationSequence(
std::ostream& out, const std::vector<Command*>& sequence) const override;
+ /**
+ * Get the string for a kind k, which returns how the kind k is printed in
+ * the SMT-LIB format (with variant v).
+ */
+ static std::string smtKindString(Kind k, Variant v = smt2_6_variant);
+
private:
/**
* The main printing method for nodes n.