Cognitive dysfunction after subarachnoid hemorrhage ( SAH ) has been attributable to presence of subarachnoid blood , hydrocephalus ( HCP ) , cerebral edema , vasospasm , and temporary clipping of intracranial aneurysm .