Analyzing Cyber-Physical Systems from the Perspective of Artificial Intelligence