SMS: Mathematical frameworks for component software