[PATCH] Move expressions with side effects out of asserts