Those sentenced to death by flagellation were whipped once a week. The law says they cannot receive more than 100 lashes per session. After each beating, they tended their wounds to withstand the next session.
He may be whipped for many weeks until the wounds, bleeding, and infection kill him. For stronger animals, this can take months.
He was kept dressed in the same thick pants and old shoes, which were becoming soaked with sweat, blood, feces, and urine. During the sessions, it is common for the person being whipped to have incontinence and to piss and shit in their pants; some had erections and came during the beatings.
When the unfortunate convict finally died, these filthy pants were put on, unwashed for the next convict. The idea is that they were part of the sentence. The condemned man knew that they had already been worn by others before him, who only took them off when dead.
Some convicts masturbate and spill all the cum on their pants as a way of showing the other convicts that life and sex are forms of protest and resistance.