Generalize printing of partial bytecodes