bv2int: implementing the iand-sum mode (#5265)