summaryrefslogtreecommitdiff
path: root/src/parser/tptp/tptp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/tptp/tptp.h')
-rw-r--r--src/parser/tptp/tptp.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/parser/tptp/tptp.h b/src/parser/tptp/tptp.h
index 4e03bc576..e12a3020a 100644
--- a/src/parser/tptp/tptp.h
+++ b/src/parser/tptp/tptp.h
@@ -46,6 +46,11 @@ class Tptp : public Parser {
std::vector< Expr > getFreeVar();
Expr convertRatToUnsorted(Expr expr);
+ /**
+ * Returns a free constant corresponding to the string str. We ensure that
+ * these constants are one-to-one with str. We assert that all these free
+ * constants are pairwise distinct before issuing satisfiability queries.
+ */
Expr convertStrToUnsorted(std::string str);
// CNF and FOF are unsorted so we define this common type.
@@ -97,7 +102,15 @@ class Tptp : public Parser {
* For example, if the role is "conjecture", then the return value is the negation of expr.
*/
Expr getAssertionExpr(FormulaRole fr, Expr expr);
-
+
+ /** get assertion for distinct constants
+ *
+ * This returns a node of the form distinct( k1, ..., kn ) where k1, ..., kn
+ * are the distinct constants introduced by this parser (see
+ * convertStrToUnsorted) if n>1, or null otherwise.
+ */
+ Expr getAssertionDistinctConstants();
+
/** returns the appropriate AssertCommand, given a role, expression expr to assert,
* and information about the assertion.
* The assertion expr is literally what should be asserted (it is already been processed
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback