Rule reminder
The 'se' clause can describe a condition related to a past situation, but the clause itself still uses the present indicative. The passato prossimo appears in the context, not inside the 'se' clause.
Marco ha studiato tutta la notte; se _____ l'esame domani, sarà esausto. (dare — lui)