(24) “Intellectual disability” means significantly subaverage general intellectual functioning existing concurrently with deficits in adaptive behavior which manifests before the age of 18 and can reasonably be expected to continue indefinitely. For the purposes of this definition, the term:
For purposes of the application of the criminal laws and procedural rules of this state to matters relating to pretrial, trial, sentencing, and any matters relating to the imposition and execution of the death penalty, the terms “intellectual disability” or “intellectually disabled” are interchangeable with and have the same meaning as the terms “mental retardation” or “retardation” and “mentally retarded” as defined in this section before July 1, 2013.