If you intend to marry and petition to adjust her status on the basis of marriage, she should not leave the country until the adjustment is granted. I don't know her history, so I can't guess the odds of success, but this is commonly done following a visa overstay.

