public class Helpers
extends java.lang.Object
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Iterable<java.lang.Boolean> |
AllBooleans() |
static java.lang.Iterable<java.lang.Character> |
AllChars() |
static java.lang.Iterable<java.math.BigInteger> |
AllIntegers() |
static java.lang.Iterable<CodePoint> |
AllUnicodeChars() |
static int |
bv16ShiftRight(short a,
byte amount) |
static int |
bv32ShiftLeft(int a,
byte amount) |
static int |
bv32ShiftRight(int a,
byte amount) |
static long |
bv64ShiftLeft(long a,
byte amount) |
static long |
bv64ShiftRight(long a,
byte amount) |
static int |
bv8ShiftRight(byte a,
byte amount) |
static byte |
divideUnsignedByte(byte a,
byte b) |
static short |
divideUnsignedShort(short a,
short b) |
static DafnySequence<? extends DafnySequence<? extends java.lang.Character>> |
FromMainArguments(java.lang.String[] args) |
static <T> T |
Id(T t) |
static java.lang.Iterable<java.math.BigInteger> |
IntegerRange(java.math.BigInteger lo,
java.math.BigInteger hi) |
static <T,U> U |
Let(T t,
java.util.function.Function<T,U> f) |
static void |
outOfRange(java.lang.String msg) |
static <T> boolean |
Quantifier(java.lang.Iterable<T> vals,
boolean frall,
java.util.function.Predicate<T> pred) |
static byte |
remainderUnsignedByte(byte a,
byte b) |
static short |
remainderUnsignedShort(short a,
short b) |
static java.lang.String |
ToCharLiteral(int codePoint) |
static int |
toInt(java.math.BigInteger i) |
static int |
toInt(int i) |
static int |
toInt(long l) |
static int |
toIntChecked(java.math.BigInteger i,
java.lang.String msg) |
static int |
toIntChecked(long i,
java.lang.String msg) |
static <G> java.lang.String |
toString(G g) |
static java.lang.String |
ToStringLiteral(DafnySequence<? extends CodePoint> dafnyString) |
static DafnySequence<? extends DafnySequence<? extends CodePoint>> |
UnicodeFromMainArguments(java.lang.String[] args) |
static java.math.BigInteger |
unsignedLongToBigInteger(long l) |
static java.math.BigInteger |
unsignedToBigInteger(byte b) |
static java.math.BigInteger |
unsignedToBigInteger(int i) |
static java.math.BigInteger |
unsignedToBigInteger(long l) |
static java.math.BigInteger |
unsignedToBigInteger(short s) |
static int |
unsignedToInt(byte x) |
static int |
unsignedToInt(long x) |
static int |
unsignedToInt(short x) |
static int |
unsignedToIntChecked(byte i) |
static int |
unsignedToIntChecked(long i,
java.lang.String msg) |
static int |
unsignedToIntChecked(short i) |
static void |
withHaltHandling(java.lang.Runnable runnable) |
public static DafnySequence<? extends DafnySequence<? extends java.lang.Character>> FromMainArguments(java.lang.String[] args)
public static DafnySequence<? extends DafnySequence<? extends CodePoint>> UnicodeFromMainArguments(java.lang.String[] args)
public static java.lang.String ToStringLiteral(DafnySequence<? extends CodePoint> dafnyString)
public static java.lang.String ToCharLiteral(int codePoint)
public static <T> boolean Quantifier(java.lang.Iterable<T> vals,
boolean frall,
java.util.function.Predicate<T> pred)
public static <T> T Id(T t)
public static <T,U> U Let(T t,
java.util.function.Function<T,U> f)
public static java.lang.Iterable<java.math.BigInteger> IntegerRange(java.math.BigInteger lo,
java.math.BigInteger hi)
public static java.lang.Iterable<java.math.BigInteger> AllIntegers()
public static java.lang.Iterable<java.lang.Boolean> AllBooleans()
public static java.lang.Iterable<java.lang.Character> AllChars()
public static java.lang.Iterable<CodePoint> AllUnicodeChars()
public static <G> java.lang.String toString(G g)
public static int toInt(java.math.BigInteger i)
public static void outOfRange(java.lang.String msg)
public static int toIntChecked(java.math.BigInteger i,
java.lang.String msg)
public static int toIntChecked(long i,
java.lang.String msg)
public static int unsignedToIntChecked(byte i)
public static int unsignedToIntChecked(short i)
public static int unsignedToIntChecked(long i,
java.lang.String msg)
public static int toInt(int i)
public static int toInt(long l)
public static int unsignedToInt(byte x)
public static int unsignedToInt(short x)
public static int unsignedToInt(long x)
public static java.math.BigInteger unsignedToBigInteger(byte b)
public static java.math.BigInteger unsignedToBigInteger(short s)
public static java.math.BigInteger unsignedToBigInteger(int i)
public static java.math.BigInteger unsignedToBigInteger(long l)
public static java.math.BigInteger unsignedLongToBigInteger(long l)
public static byte divideUnsignedByte(byte a,
byte b)
public static short divideUnsignedShort(short a,
short b)
public static byte remainderUnsignedByte(byte a,
byte b)
public static short remainderUnsignedShort(short a,
short b)
public static int bv8ShiftRight(byte a,
byte amount)
public static int bv16ShiftRight(short a,
byte amount)
public static int bv32ShiftRight(int a,
byte amount)
public static long bv64ShiftRight(long a,
byte amount)
public static int bv32ShiftLeft(int a,
byte amount)
public static long bv64ShiftLeft(long a,
byte amount)
public static void withHaltHandling(java.lang.Runnable runnable)