maxres revised to handle weighted constraints

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