The punishment for cruelty to juvenile or child amounts to

When a child in conflict with law is in custody while undergoing trial, is declared adult under Section 18(3) of the Juvenile Justice (Care and Protection of Children) Act upon crossing the age of 18 years during the course of trial. Which of the following option is available to the trial court in such a situation?