System.out.println("Cannot generate number gathering code: Print(s) in control flow");
    public static int check(SIRFilter filter)     {	prints = 0;	printInControlFlow = false;		for (int i = 0; i < filter.getMethods().length; i++) {	    //skip the work function	    if (filter.getMethods()[i].equals(filter.getWork()))		continue;	    //visit method	    filter.getMethods()[i].accept(new CheckPrint());	    	    //print not in work function	    if (prints > 0) {		System.out.println("Cannot generate number gathering code: Print outside work()");		return -1;	    }	    	    if (controlFlow != 0)		Utils.fail("Error in CheckPrint Visitor in NumberGathering");	}		filter.getWork().accept(new CheckPrint());	if (printInControlFlow) {	    System.out.println("Cannot generate number gathering code: Print(s) in control flow");	    return -1;	}	return prints;    }