(1) Upon an indictment for a crime, the accused person may be convicted of attempting to commit that crime or any other crime of which, subject to subsection (2) of section 332 , he could be convicted on that indictment.(2) Where a person is charged in an indictment with an attempt to commit a crime and the evidence establishes that he committed the full crime he may be convicted of that full crime.(3) Where a person has been convicted of an attempt to commit a crime he is not liable to be tried for the crime of which he was so convicted of having attempted to commit.