Incremental support for bv_to_int (#4967)