private native long mkUnresolvedSort(long pointer, String symbol, int arity);
+ /**
+ * Create an unresolved sort.
+ *
+ * This is for creating yet unresolved sort placeholders for mutually
+ * recursive datatypes without sort parameters.
+ *
+ * @param symbol the symbol of the sort
+ * @return the unresolved sort
+ */
+ public Sort mkUnresolvedSort(String symbol) throws CVC5ApiException
+ {
+ return mkUnresolvedSort(symbol, 0);
+ }
+
/**
* Create a sort constructor sort.
* @param symbol the symbol of the sort
@Test void mkUnresolvedSort() throws CVC5ApiException
{
- assertDoesNotThrow(() -> d_solver.mkUnresolvedSort("u", 0));
+ assertDoesNotThrow(() -> d_solver.mkUnresolvedSort("u"));
assertDoesNotThrow(() -> d_solver.mkUnresolvedSort("u", 1));
- assertDoesNotThrow(() -> d_solver.mkUnresolvedSort("", 0));
+ assertDoesNotThrow(() -> d_solver.mkUnresolvedSort(""));
assertDoesNotThrow(() -> d_solver.mkUnresolvedSort("", 1));
}