The AMM library requires only four external routines. AMM uses smalloc and sfree (Section 9.5) to allocate and free entries for maps which don't specify an allocator (see amm_init_gen). The amm_dump routine uses printf (Section 9.6) to generate output. Various routines use panic (Section 9.7.3) when an internal consistency check fails.