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.

FunctionArgumentsResult
abs(x), Int or RealAbsolute value, same type
apply(m, k), map and keyThe value of k in m
bulk_update(m, overlay), two mapsm with every entry of overlay written over it
carry(a, b, op)Same as overflow
ceil(r), RealInt
concat(a, b, …), bit-vectorsBit-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 ArrayBool: x is an element
default(x)An empty map
dequeue(q), Queueq without its front element (unconstrained when empty)
diff(a, b), SetsSet difference
domain(m), mapSet 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), RealInt
front(q), QueueFront element
get(a, i), Array and indexElement i
intersect(a, b), SetsSet intersection
is_subset(a, b), SetsBool: a ⊆ b
isEmpty(c), Set, Queue or ArrayBool
length(a), Array or StringInt
max, min(a, b), two Ints or two RealsLarger / 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 Realsb to the power e (unconstrained when the Int result overflows)
round(r), RealInt
sext(e, w), bit-vector and target widthe sign-extended to width w
sign(x), Int or RealInt: -1, 0 or 1
sign_extend(e, k), bit-vector and integer literale sign-extended by k bits
size(c), Set, Queue, Array or mapInt
sqrt(r), RealReal
toInt(r), RealInt, truncated
toReal(i), IntReal
union(a, b), SetsSet union
update(m, k, v)m with k mapped to v
zext(e, w), bit-vector and target widthe zero-extended to width w
zero_extend(e, k), bit-vector and integer literale 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.

↑ ↓ to moveEnter to openEsc to close