unsafe code questions

For each code example on each page, when Miri is run with Stacked Borrows enabled does the example invoke UB or not.

When the example has UB, explain which operation is UB and why.