Skip to main content

fresh_vm_space_id

Function fresh_vm_space_id 

Source
pub open spec fn fresh_vm_space_id<'a>(m: Map<VmSpaceId, VmSpaceOwner>) -> VmSpaceId
Expand description
{ choose |id: VmSpaceId| !m.dom().contains(id) }

Picks an id not currently in m.dom(). Since the key type is int, an unused id always exists.