句式:sb/sth be thought to do sth/be done
to have been invented表示过去已经完成的动作
having been invented表示伴随的状态,与拘役不符.