If one did not sleep at night, one may recite all the Brachos except for על נטילת ידים, unless he uses the restroom before he Davens. There is a question in the Poskim if one who did not sleep during the night may recite אלוקי נשמה and the Bracha of המעביר שינה. Therefore, in such a scenario one should find someone to include them in their Bracha, but if one cannot find someone else or one would miss פסוקי דזמרא by waiting for someone else, then they should recite these two Brachos on their own.
If one slept for a half an hour during the night then they may recite all the Brachos.