Specification and analysis