Elucidating the pyrolysis reaction mechanism of Calotropis procera and analysis of pyrolysis products to evaluate its potential for bioenergy and chemicals.