Safety analysis