I'm sure most software people will be horrified how much "safety critical software" in modern cars and aircrafs is autogenerated based on something drawn up in Simulink/Stateflow.
I'm sure most software people will be horrified how much "safety critical software" in modern cars and aircrafs is autogenerated based on something drawn up in Simulink/Stateflow.
These languages bring a lot of key guarantees that you can't (easily) get from more classical languages like bounded memory usage, hard real time guarantees, numerical properties, ability to prove theoretical properties about the model etc...
It's also not like having your code written as a text file would save you from using closed source proprietary compilers or languages (Ada, Ferrocene, various C distributions) for safety-critical software.
https://en.wikipedia.org/wiki/AUTOSAR
From my understanding it's very prevalent in automotive to generate microcontroller code.