Only include assertion code in non-release builds
Comment on how topb allocates memory for the result