Having talked with people who write life-critical code, the regulation isn't really what makes it safe. Safety comes from good engineering.
The regulation just makes it much harder to bring an unsafe product to market, and makes it clearer who to blame when people die.