I hope this question fits this site. You may know you can't detect undefined behaviour in C using compilers - and some tools (static analysis) can help you detect it. My question is more empirical - I know exact solution cant' exist. Question:
- Say one developed software and performed intensive testing of the application for several days and no issues found, how much can he be sure there is no undefined behaviour constructs used in his application?
- Consider same situation as above and that the software the programmer developed has been deployed to a company who is using it for several months and no issues have been reported. In practice, how much can one be sure in such case the there is no Undefined behaviour in software?
PS. Extra: If there is undefined behaviour in function A() in program, can program behave well when it reaches A() and malfunction when it reaches function B() - which has no problems?