added semiSum in Z3