C3.ai Inc., a maker of data-analysis software, gained after Reuters reported the company is exploring a sale.