Ensure that the generated tree is semantically correct