Built-in Function Index
Every function the analyzer's built-in dispatch knows, alphabetically. An argument of another kind than listed gives an unconstrained value. In SMT-checked constraints the encoded functions are concat, extract, sign_extend and zero_extend, plus, in bit-vector pattern constraints, the SMT-LIB functions bvnot … bvmul listed on Bit-vector Operations (which the built-in dispatch does not know); see where built-ins are evaluated.
| Function | Arguments | Result |
|---|---|---|
abs | (x), Int or Real | Absolute value, same type |
apply | (m, k), map and key | The value of k in m |
bulk_update | (m, overlay), two maps | m with every entry of overlay written over it |
carry | (a, b, op) | Same as overflow |
ceil | (r), Real | Int |
concat | (a, b, …), bit-vectors | Bit-vector of the summed width, a most significant. Concrete evaluation joins the first two arguments (at most 64 bits in all); the solver encoding takes any number. |
contains | (s, x), Set or Array | Bool: x is an element |
default | (x) | An empty map |
dequeue | (q), Queue | q without its front element (unconstrained when empty) |
diff | (a, b), Sets | Set difference |
domain | (m), map | Set of keys |
enqueue | (q, x) | q with x at the back |
extract | (e, hi, lo); usually written extract<hi, lo>(e) | Bits hi..lo, width hi - lo + 1 |
floor | (r), Real | Int |
front | (q), Queue | Front element |
get | (a, i), Array and index | Element i |
intersect | (a, b), Sets | Set intersection |
is_subset | (a, b), Sets | Bool: a ⊆ b |
isEmpty | (c), Set, Queue or Array | Bool |
length | (a), Array or String | Int |
max, min | (a, b), two Ints or two Reals | Larger / smaller, same type |
overflow | (a, b, op): bit-vectors and "add", "sub" or "mul" | Bool: the unsigned result of op does not fit the width of a. Always false at width 64 (the 64-bit computation wraps before the check) |
pow | (b, e), Ints (e ≥ 0) or Reals | b to the power e (unconstrained when the Int result overflows) |
round | (r), Real | Int |
sext | (e, w), bit-vector and target width | e sign-extended to width w |
sign | (x), Int or Real | Int: -1, 0 or 1 |
sign_extend | (e, k), bit-vector and integer literal | e sign-extended by k bits |
size | (c), Set, Queue, Array or map | Int |
sqrt | (r), Real | Real |
toInt | (r), Real | Int, truncated |
toReal | (i), Int | Real |
union | (a, b), Sets | Set union |
update | (m, k, v) | m with k mapped to v |
zext | (e, w), bit-vector and target width | e zero-extended to width w |
zero_extend | (e, k), bit-vector and integer literal | e zero-extended by k bits |
Concrete evaluation of zero_extend and sign_extend is limited to 64 bits in all; the solver encoding has no such limit. count, find, forall_agents, exists_agent, sum_over and max_over are recognised but always unconstrained. sum is not a function but a quantifier.