A safety preserving control architecture for cyber‐physical systems