Viagra, referred to as sildenafil , is primarily prescribed to treat male sexual dysfunction for men. However be prescribed off-label for treating pulmonary high blood pressure in the lungs . Its function involves widening arteries in the penis allowing for more circulation and supporting an peni