public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <K> Pair<K,Long>[] |
getPairs(Pair<K,? extends io.github.cvc5.AbstractPointer>[] abstractPointers) |
static long[] |
getPointers(io.github.cvc5.IPointer[] objects) |
static long[][] |
getPointers(io.github.cvc5.IPointer[][] objects) |
static Proof[] |
getProofs(long[] pointers) |
static String |
getRational(Pair<BigInteger,BigInteger> pair)
Convert a pair of BigIntegers to a rational string a/b
|
static Pair<BigInteger,BigInteger> |
getRational(String rational)
Convert a rational string a/b to a pair of BigIntegers
|
static Sort[] |
getSorts(long[] pointers) |
static Term[] |
getTerms(long[] pointers) |
static void |
loadLibraries()
Load cvc5 jni library.
|
static void |
validateUnsigned(int[] integers,
String name) |
static void |
validateUnsigned(int integer,
String name) |
static void |
validateUnsigned(long[] integers,
String name) |
static void |
validateUnsigned(long integer,
String name) |
public static void loadLibraries()
public static Sort[] getSorts(long[] pointers)
pointers - The array of pointers.public static Term[] getTerms(long[] pointers)
pointers - The array of pointers.public static Proof[] getProofs(long[] pointers)
pointers - The array of pointers.public static long[] getPointers(io.github.cvc5.IPointer[] objects)
objects - The one dimensional array of pointers.public static long[][] getPointers(io.github.cvc5.IPointer[][] objects)
objects - The two dimensional array of pointers.public static void validateUnsigned(int integer,
String name)
throws CVC5ApiException
CVC5ApiExceptionpublic static void validateUnsigned(long integer,
String name)
throws CVC5ApiException
CVC5ApiExceptionpublic static void validateUnsigned(int[] integers,
String name)
throws CVC5ApiException
CVC5ApiExceptionpublic static void validateUnsigned(long[] integers,
String name)
throws CVC5ApiException
CVC5ApiExceptionpublic static <K> Pair<K,Long>[] getPairs(Pair<K,? extends io.github.cvc5.AbstractPointer>[] abstractPointers)
public static Pair<BigInteger,BigInteger> getRational(String rational)
rational - The rational string.public static String getRational(Pair<BigInteger,BigInteger> pair)
pair - The pair of big integers.