Reference

Built-in Function Index

Built-in functions are available without import in any expression context.

FunctionSignatureDescription
abs(Int) → IntAbsolute value
bv(Int, Int) → Bits(n)Bitvector literal of width n
concat(Bits(m), Bits(n)) → Bits(m+n)Concatenate bitvectors
contains(Set(T), T) → BoolMembership test
count((T → Bool), Range) → IntCount satisfying elements
dequeue(Queue(T)) → Queue(T)Remove front element
enqueue(Queue(T), T) → Queue(T)Add to back
extract(Bits(n), Int, Int) → Bits(hi-lo+1)Bit slice
gcd(Int, Int) → IntGreatest common divisor
insert(Set(T), T) → Set(T)Add element
isEmpty(Set(T) | Queue(T)) → BoolEmptiness test
max(Int, Int) → IntMaximum
min(Int, Int) → IntMinimum
peek(Queue(T)) → TFront element without removal
pow(Int, Int) → IntInteger exponentiation
product((Int → Int), Range) → IntProduct over range
remove(Set(T), T) → Set(T)Drop element
sext(Bits(n), Int) → Bits(width)Signed extension
size(Set(T) | Queue(T)) → IntCardinality
sum((Int → Int), Range) → IntSum over range
zext(Bits(n), Int) → Bits(width)Zero extension