My go-to example of "UB is everywhere" is this one:
int increment(int x) {
return x + 1;
}
Which is UB for certain values of x. int increment(int x) {
return x + 1;
}
Which is UB for certain values of x.