Yes if the for-profit was the entire operation, I think you could definitely have issues with the IRS. It would ultimately depend on your ability to convince either the IRS or a judge that there is some purpose to the nonprofit apart from giving investors in the for-profit side tax deductions.