if ((flags & LINEAR_ANALYSIS) == LINEAR_ANALYSIS) { options[numOptions] = OPTION_LINEAR_ANALYSIS; numOptions++; }   if ((flags & LINEAR_REPLACEMENT) == LINEAR_REPLACEMENT) { options[numOptions] = OPTION_LINEAR_REPLACEMENT; numOptions++; }   if ((flags & DEBUG) == DEBUG) { options[numOptions] = OPTION_DEBUG; numOptions++; }
    public static CompilerInterface createCompilerInterface(int flags) {	int numOptions = 0;	String[] options = new String[100]; // resize array we return at the end	// always compiling to streamit	options[numOptions] = OPTION_STREAMIT;	numOptions++;		// if we want to turn on constant prop	if ((flags & CONSTPROP) == CONSTPROP) {	    options[numOptions] = OPTION_CONSTPROP;	    numOptions++;	}	// if we want to turn on unrolling	if ((flags & UNROLL) == UNROLL) {	    options[numOptions] = OPTION_UNROLL;	    numOptions++;	}		// if we want to turn on fusion	if ((flags & FUSION) == FUSION) {	    options[numOptions] = OPTION_FUSION;	    numOptions++;	}	// if we want to turn on partitioning	if ((flags & PARTITION) == PARTITION) {	    options[numOptions] = OPTION_PARTITION;	    numOptions++;	}	// if we are compiling to 4 raw tiles 	if ((flags & RAW4) == RAW4) {	    options[numOptions] = OPTION_RAW;	    numOptions++;	    options[numOptions] = OPTION_FOUR;	    numOptions++;	}	// if we are compiling to 8 raw tiles 	if ((flags & RAW8) == RAW8) {	    options[numOptions] = OPTION_RAW;	    numOptions++;	    options[numOptions] = OPTION_EIGHT;	    numOptions++;	}		// copy over the options that were used into an options	// array that is the correct size	String[] optionsToReturn = new String[numOptions];	for (int i=0; i<numOptions; i++) {	    optionsToReturn[i] = options[i];	}	// create a new interface with these options		return new CompilerInterface(flags, optionsToReturn);    }