sgs2c - output code reduction