If the defendant fails to give notice when required by § 23A-10-3 or to submit to an examination when ordered under § 23A-10-4 , a court shall exclude the testimony of any witness offered by a defendant on the issue of his mental state. Source: SL 1978, ch 178 , § 127; SL 1983, ch 174 , § 11.