Brain dysfunction present in patients with chronic liver disease and portal hypertension, in which chemicals that the liver normally detoxifies are shunted past it and left to circulate in the blood. Some patients are asymptomatic; others have mild impairments in memory, calculation, speech, affect, or judgment. Severely affected patients may lapse into coma.