5 ms·
a program which has undefined behaviour on some inputs is an incorrect program by definition
by jcelerier 8y ago
a program which has undefined behaviour on some inputs is an incorrect program by definition
- saagarjha 8y agoI'll have to disagree with you there: you cannot fully control the range of inputs that you are provided at all times, or perform verification of input. But you can clearly document what conditions the input must satisfy for the program to be well-defined.