"Where a defendant arraigned on an indictment or inquisition pleads guilty and the prosecutor proposes to offer no evidence against him, the court before which the defendant is arraigned may, if it thinks fit, order that a verdict of not guilty shall be recorded without the defendant being given in charge to a jury. The verdict shall have the same effect as if the defendant had been tried and acquitted on the verdict of a jury."
"Where on a summary trial of an information the court dismisses the information, the dismissal shall have the same effect as an acquittal on indictment."