Automata-Based Quantitative Verification