actual solving of the halfslab+torch problem