coallesce common code

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
move sls functionality to solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>