}
public static void check(String line) {
boolean unsat = line.charAt(0) == 'u';
Parser parser = new Parser(line.substring(2));
Automaton automaton = new Automaton();
int root = parser.parse(automaton);
automaton.setRoot(0, root);
StrategyRewriter.Strategy<InferenceRule> inferenceStrategy = new SimpleRewriteStrategy<InferenceRule>(
automaton, Arithmetic.inferences);
StrategyRewriter.Strategy<ReductionRule> reductionStrategy = new SimpleRewriteStrategy<ReductionRule>(
automaton, Arithmetic.reductions);
StrategyRewriter rw = new StrategyRewriter(automaton,
inferenceStrategy, reductionStrategy, Arithmetic.SCHEMA);
rw.apply(10000);
boolean result = automaton.get(automaton.getRoot(0)).equals(Arithmetic.False);
if(result != unsat) {
System.out.println("\n\n*** TEST FAILED: " + line + "\n");
}
// else if(Arithmetic.numSteps >= Arithmetic.MAX_STEPS) {