Efficient static checking of safety properties in concurrent smart environments