Built-in Functions

Built-in functions are called like any function, name(args), without an import. The full list with arguments is in the built-in function index.

Math#

abs, min, max, pow, sign, floor, ceil, round, sqrt, toReal, toInt.

Bit-vectors#

concat, extract, zero_extend, sign_extend, zext, sext, overflow, carry. zero_extend(e, k) and sign_extend(e, k) add k bits; zext(e, w) and sext(e, w) extend to width w. extract is usually written extract<hi, lo>(e). See Bit-vector Operations.

Collections#

Sets: union, intersect, diff, contains, is_subset, size, isEmpty. Queues: enqueue, dequeue, front, size, isEmpty. Arrays: length, get, contains, size, isEmpty.

Maps#

apply, update, bulk_update, default, domain.

Where they are evaluated#

↑ ↓ to moveEnter to openEsc to close