Package dafny
Class Helpers
java.lang.Object
dafny.Helpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllChars()static Iterable<BigInteger>static intbv16ShiftRight(short a, byte amount) static intbv32ShiftLeft(int a, byte amount) static intbv32ShiftRight(int a, byte amount) static longbv64ShiftLeft(long a, byte amount) static longbv64ShiftRight(long a, byte amount) static intbv8ShiftRight(byte a, byte amount) static bytedivideUnsignedByte(byte a, byte b) static shortdivideUnsignedShort(short a, short b) static DafnySequence<? extends DafnySequence<? extends Character>>FromMainArguments(String[] args) static <T> TId(T t) static Iterable<BigInteger>IntegerRange(BigInteger lo, BigInteger hi) static <T,U> U static voidoutOfRange(String msg) static <T> booleanQuantifier(Iterable<T> vals, boolean frall, Predicate<T> pred) static byteremainderUnsignedByte(byte a, byte b) static shortremainderUnsignedShort(short a, short b) static StringToCharLiteral(int codePoint) static inttoInt(int i) static inttoInt(long l) static inttoInt(BigInteger i) static inttoIntChecked(long i, String msg) static inttoIntChecked(BigInteger i, String msg) static <G> StringtoString(G g) static StringToStringLiteral(DafnySequence<? extends CodePoint> dafnyString) static DafnySequence<? extends DafnySequence<? extends CodePoint>>UnicodeFromMainArguments(String[] args) static BigIntegerunsignedLongToBigInteger(long l) static intunsignedToInt(byte x) static intunsignedToInt(long x) static intunsignedToInt(short x) static intunsignedToIntChecked(byte i) static intunsignedToIntChecked(long i, String msg) static intunsignedToIntChecked(short i) static voidwithHaltHandling(Runnable runnable)
-
Constructor Details
-
Helpers
public Helpers()
-
-
Method Details
-
FromMainArguments
public static DafnySequence<? extends DafnySequence<? extends Character>> FromMainArguments(String[] args) -
UnicodeFromMainArguments
public static DafnySequence<? extends DafnySequence<? extends CodePoint>> UnicodeFromMainArguments(String[] args) -
ToStringLiteral
-
ToCharLiteral
-
Quantifier
-
Id
public static <T> T Id(T t) -
Let
-
IntegerRange
-
AllIntegers
-
AllBooleans
-
AllChars
-
AllUnicodeChars
-
toString
-
toInt
-
outOfRange
-
toIntChecked
-
toIntChecked
-
unsignedToIntChecked
public static int unsignedToIntChecked(byte i) -
unsignedToIntChecked
public static int unsignedToIntChecked(short i) -
unsignedToIntChecked
-
toInt
public static int toInt(int i) -
toInt
public static int toInt(long l) -
unsignedToInt
public static int unsignedToInt(byte x) -
unsignedToInt
public static int unsignedToInt(short x) -
unsignedToInt
public static int unsignedToInt(long x) -
unsignedLongToBigInteger
-
divideUnsignedByte
public static byte divideUnsignedByte(byte a, byte b) -
divideUnsignedShort
public static short divideUnsignedShort(short a, short b) -
remainderUnsignedByte
public static byte remainderUnsignedByte(byte a, byte b) -
remainderUnsignedShort
public static short remainderUnsignedShort(short a, short b) -
bv8ShiftRight
public static int bv8ShiftRight(byte a, byte amount) -
bv16ShiftRight
public static int bv16ShiftRight(short a, byte amount) -
bv32ShiftRight
public static int bv32ShiftRight(int a, byte amount) -
bv64ShiftRight
public static long bv64ShiftRight(long a, byte amount) -
bv32ShiftLeft
public static int bv32ShiftLeft(int a, byte amount) -
bv64ShiftLeft
public static long bv64ShiftLeft(long a, byte amount) -
withHaltHandling
-