Add option for using bound inference for relevant assertions (#7152)