If it considers that the provisions of the first paragraph of Article 122-1 of the Penal Code are applicable, the criminal court shall render a judgment declaring the person not criminally responsible on account of mental disorder by which:
1° It declares that the person committed the acts of which he or she was accused;
2° It declares the person not criminally responsible on the grounds of a psychic or neuropsychic disorder having abolished his or her discernment or control of his or her acts at the time of the acts;
3° It rules on the civil liability of the person who committed the acts, in accordance with Article 414-3 of the Civil Code, and shall rule, where appropriate, on claims for damages made by the civil party;
4°It shall order, where appropriate, one or more of the security measures provided for in Chapter III of this Title.
The judgment declaring that the person is not criminally irresponsible on account of mental disorder shall terminate pre-trial detention or judicial supervision.